|7 months ago||11 days ago|
|GNU General Public License v3.0 or later||MIT License|
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
We haven't tracked posts mentioning config yet.
Tracking mentions began in Dec 2020.
Viper – Go Configuration with Fangs
4 projects | news.ycombinator.com | 20 May 2022
Use viper with care. It has some dangerous fundamental flaws . We got bitten hard, submitted a PR  and followed up for a year and a half to no avail, before I went ahead and reinvented the wheel and wrote koanf (plug), specifically to avoid viper's flaws.
- Breaks JSON, YAML, TOML etc. language specs by forcibly lowercasing all keys internally. Dangerous because it can silently merge differently cased config keys into lowercase.
- Hard codes big unnecessary dependencies into the core, significantly bloating build sizes. No separation or abstraction.
Extracting embedded files
1 project | reddit.com/r/golang | 25 Apr 2022
It's not hard to a) look for a key in an environment variable b) accept a key as a parameter c) load a key from a file d) all of the above with something like koanf
What are some good open source project to read when learning Go?
19 projects | reddit.com/r/golang | 31 Mar 2022
Coral, a friendly Cobra fork with nearly all its features, but only 4 dependencies
10 projects | reddit.com/r/golang | 2 Feb 2022
Came across this the other day https://github.com/knadh/koanf as an alternative to Viper.
What are your favorite packages to use?
55 projects | reddit.com/r/golang | 15 Aug 2021
https://github.com/knadh/koanf for config management. Readme contains why it's a good alternative to viper.
Is Viper necessary if my app is only using environment variables?
2 projects | reddit.com/r/golang | 19 Feb 2021
I use Koanf, much simpeler with the same options https://github.com/knadh/koanf
I've been using "caarlos0/env" for nearly 4 years? Anything better?
3 projects | reddit.com/r/golang | 26 Jan 2021
Personally I like: https://github.com/knadh/koanf
What are some alternatives?
viper - Go configuration with fangs
konfig - Composable, observable and performant config handling for Go for the distributed processing era
ini - Package ini provides INI file read and write functionality in Go
go-simple-config - open source for accessing and storing configuration
hjson - Hjson for Go
gcfg - read INI-style configuration files into Go structs; supports user-defined types and subsections
kelseyhightower/envconfig - Golang library for managing configuration data from environment variables
xdg - A cross platform package that follows the XDG Standard
envconfig - Small library to read your configuration from environment variables
go-ini - automatic mirror of https://git.sr.ht/~spc/go-ini