proxy.golang.org : github.com/rwxrob/jsconf-go
Package jsconf is a simple package to assist with writing flat configuration and other data to JSON files at an expected location safely being sure not overwrite any configuration file that has been updated since it was last written by the running program. This helps avoid contention between two runtimes that might be in contention for writes to the same file. The JSON data is always saved as a one-dimensional, flat map of strings with concurrency-safe Get() and Set() methods. Depth may be achieved by using dotted or dashed notation for the keys but ultimately everything is saved in a single map of key/value pairs where the keys and values are both quoted UTF-8 strings. This improves efficiency and avoids type inference issues.
Registry
-
Source
- Documentation
- JSON
purl: pkg:golang/github.com/rwxrob/jsconf-go
License: MPL-2.0
Latest release: over 4 years ago
First release: over 4 years ago
Namespace: github.com/rwxrob
Last synced: about 1 month ago