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.
- Host: GitHub
- URL: https://github.com/postmannen/mapfile
- Owner: postmannen
- Created: 2018-08-24T22:13:12.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-08-31T09:49:38.000Z (almost 8 years ago)
- Last Synced: 2025-01-17T11:13:45.451Z (over 1 year ago)
- Language: Go
- Size: 34.2 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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"