Skip to content

sv-tools/conf

Folders and files

NameName
Last commit message
Last commit date
Mar 4, 2025
Apr 27, 2021
Apr 23, 2021
Mar 4, 2025
Apr 23, 2021
Feb 12, 2023
Nov 19, 2024
Mar 4, 2025
Mar 4, 2025
Mar 4, 2025
Dec 24, 2024
Feb 12, 2023
Mar 4, 2025
Oct 1, 2021
Apr 27, 2021

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.