Skip to content

sv-tools/conf

Repository files navigation

conf

Code Analysis Go Reference codecov GitHub tag (latest SemVer)

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.

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.

Addons

Alternatives

  • 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.

License

MIT licensed. See the bundled LICENSE file for more details.