|about 17 hours ago||18 days ago|
|MIT License||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.
Snob - Dev Log (How it's done)
6 projects | dev.to | 18 Aug 2022
config.go - Handles the configuration part (in our case, the key environment variable) with help from Viper;
6 projects | news.ycombinator.com | 18 Jul 2022
I contribute to open source projects as well - in various ways - and it's fine for a maintainer of a huge project to use that wording.
Steve is a very accomplished programmer, with what hugo / viper became in the go ecosystem by itself. In my view, the projects also jumpstarted a lot of new users who were trying out golang who weren't sold on it yet. I didn't really appreciate his leadership or advisory roles until now, that's just icing on the cake.
Thanks for your contributions, Steve!
Botway - 🤖 Generate, build, handle and deploy your own bot with your favorite language, for Discord, or Telegram, or Slack.
6 projects | dev.to | 21 Jun 2022
Viper – Go Configuration with Fangs
16 direct dependencies, 39 transitive dependencies, and nearly 7000 lines of code -- for a package that handles flags and config files. I can't help feeling that frameworks like this are a little overwrought. It's the sort of project that succeeds because thousands of people just need something that works, right away, search for "golang config," and click the top result. If you can afford to slow down a little, you may find that you can config your app just fine with a few stdlib imports and a bit of glue.
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.
14 great tips to make amazing CLI applications
14 projects | dev.to | 10 May 2022
configuration files. A few command line option libraries provide the option to use a configuration file alongside the command line parser (for example viper in golang). Otherwise, nothing is easier to use a JSON, YAML, or TOML parser to read in defaults and overrides.
Simple configuration for apps
4 projects | reddit.com/r/golang | 5 May 2022
Thanks, it basically bunch of battle-tested tools like viper, defaults, validators put together
CLI plugin manager for (neo)vim
4 projects | reddit.com/r/neovim | 20 Apr 2022
Just for your information: viper is also a popular go package.
Best practice for configuring secrets
6 projects | reddit.com/r/golang | 6 Apr 2022
More details : https://github.com/spf13/viper
How can I "source" a bash script?
2 projects | reddit.com/r/golang | 25 Feb 2022
Maybe https://github.com/joho/godotenv can help
passwords, secrets, keys - best practice
5 projects | reddit.com/r/golang | 23 Feb 2022
I'm looking for a good alternativ to Viper
12 projects | reddit.com/r/golang | 16 Jan 2022
Build a REST API with Golang and MongoDB - Fiber Version
7 projects | dev.to | 2 Jan 2022
Go Environment Loader
Go questions from an Express TS dev
3 projects | reddit.com/r/golang | 27 Dec 2021
What are your favorite packages to use?
55 projects | reddit.com/r/golang | 15 Aug 2021
https://github.com/joho/godotenv for loading env vars from a file gets used a lot here.
What are some alternatives?
envconfig - Small library to read your configuration from environment variables
koanf - Simple, lightweight, extensible, configuration management library for Go. Support for JSON, TOML, YAML, env, command line, file, S3 etc. Alternative to viper.
mapstructure - Go library for decoding generic map values into native Go structures and vice versa.
kelseyhightower/envconfig - Golang library for managing configuration data from environment variables
ini - Package ini provides INI file read and write functionality in Go
goConfig - goconfig uses a struct as input and populates the fields of this struct with parameters from command line, environment variables and configuration file.
config - JSON or YAML configuration wrapper with convenient access methods.
cleanenv - ✨Clean and minimalistic environment configuration reader for Golang
go-toml - Go library for the TOML file format
validator - :100:Go Struct and Field validation, including Cross Field, Cross Struct, Map, Slice and Array diving
env - A simple and zero-dependencies library to parse environment variables into structs.
gotenv - Load environment variables from `.env` or `io.Reader` in Go.