Our great sponsors
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.
hjson
We haven't tracked posts mentioning hjson yet.
Tracking mentions began in Dec 2020.
viper
-
14 great tips to make amazing CLI applications
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
Thanks, it basically bunch of battle-tested tools like viper, defaults, validators put together
-
CLI plugin manager for (neo)vim
Just for your information: viper is also a popular go package.
-
Best practice for configuring secrets
More details : https://github.com/spf13/viper
Take a look @ Viper
-
Go Vars – Simple and yet powerful configuration management
It have some quirks to read .env file (this and this).
-
Viper in with AWS Lambda
After deploying to AWS Lambda, seems like env vars are ignored. I went over to the Viper issues page and found this: https://github.com/spf13/viper/issues/584
- I made a twitter bot, who posts daily rankings of the best 10 players in the LEC (League of Legends)
-
Tran - 🖥 Securely transfer and send anything between computers with TUI.
Viper
-
Coral, a Cobra fork with nearly all its features, but only 4 dependencies
The dependency that was dropped has many dependencies that would get added to your project.
What are some alternatives?
godotenv - A Go port of Ruby's dotenv library (Loads environment variables from `.env`.)
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.
kelseyhightower/envconfig - Golang library for managing configuration data from environment variables
mapstructure - Go library for decoding generic map values into native Go structures and vice versa.
ini - Package ini provides INI file read and write functionality in Go
config - JSON or YAML configuration wrapper with convenient access methods.
goConfig - goconfig uses a struct as input and populates the fields of this struct with parameters from command line, environment variables and configuration file.
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.