Created a self-hosted API for CRUD-ing JSON data using GO. Helps me with quick/flexible data storage tasks that can easily interface with different programs.
The API is based on the JSON structure. So the example below is for CRUD-ing [key1][key2] in file.json. The value (which can be anything) is then added to the body of the request. Moreover, there are helper functions for appending and incrementing values.
1 comment
[ 3.0 ms ] story [ 9.6 ms ] threadThe API is based on the JSON structure. So the example below is for CRUD-ing [key1][key2] in file.json. The value (which can be anything) is then added to the body of the request. Moreover, there are helper functions for appending and incrementing values.