github.com/damnever/cc (go): Package cc is a very flexible configuration management library for humans, which is easy to use and support YAML and JSON only.  Usage  The priorities: flags > environment variables > normal configs NOTE: we take empty string, false boolean and zero number value as default value in flags, and those value has no priority.  We may write the code like this:  Now, we can write code like this:  If you want to check string value whether it is matched by regexp:  Or, the make the string value as a pattern:  For int(time.Duration) and float, cc use if-like condition to do similar work. Assume we have `threhold: "N>=30&&N<=80"` in config file, we can use it like this:  Or, using a pattern to validate the number:  NOTE: bit operation is not supported.
Keywords: configuration-management|golang|humans|library|simple-is-better