An open API service indexing awesome lists of open source software.

https://github.com/postmannen/mapfile

Checks for json file change, if changed, read and decode json, put the decoded content into a map.
https://github.com/postmannen/mapfile

Last synced: 8 months ago
JSON representation

Checks for json file change, if changed, read and decode json, put the decoded content into a map.

Awesome Lists containing this project

README

          

# What does this package do

* Continously check for json file change.
* If changed, read and decode json.
* Put the decoded content into a map.
* If any operation fails the current working map will be kept, and an error will be printed to console

Example of how to use can be found under ./cmd/main.go

## Notes

The JSON file is structured as key/value pairs..like the map

"addButton": "buttonTemplate1",
"addHeader": "socketTemplate1",
"addParagraph": "paragraphTemplate1"