The configuration reader with as few dependencies as possible.
The library provides the base code only and the interfaces. All parsers and readers must be created in the separate repositories to avoid unnecessary dependencies.
- The spf13/cast has been added as dependency to avoid the code duplication. I will make a hard copy of it if the number of dependencies are increased.
- The stretchr/testify is used in tests only.
- Go Templates Transformer supports go templates by parsing and applying the templates stored in the configuration manager.
- JSON Parser reads a data in JSON format.
- YAML Parser reads a data in YAML format.
- Env reader reads the values from environment variables.
- Flags reader reads the command line flags (using pflag)
- viper is the most know library, it's very heavy and very rich in various features.
- koanf is an attempt to make a better version of the
viper
, but also contains all parsers in same repo, so the list of dependencies is pretty huge.
MIT licensed. See the bundled LICENSE file for more details.