Top 4.7% dependent repos on proxy.golang.org
proxy.golang.org : github.com/damnever/cc
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.
Registry
-
Source
- Documentation
- JSON
purl: pkg:golang/github.com/damnever/cc
Keywords:
configuration-management
, golang
, humans
, library
, simple-is-better
License: BSD-3-Clause
Latest release: over 7 years ago
First release: over 7 years ago
Namespace: github.com/damnever
Dependent repositories: 1
Stars: 32 on GitHub
Forks: 2 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 3 days ago