configuration
gookit/config
Our great sponsors
configuration | gookit/config | |
---|---|---|
1 | 3 | |
101 | 519 | |
- | 1.0% | |
6.2 | 7.7 | |
11 days ago | about 2 months ago | |
Go | Go | |
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.
configuration
gookit/config
-
topoconfig: enhancing config declarations with graphs
gookit/config
-
How to read .env file with a variable that contains $ ?
In that case, you should not be using the shell to read the .env file; instead, use a library. I recommend https://github.com/gookit/config
- GitHub - gookit/config: 📝 Go configuration manage(load,get,set,export). support JSON, YAML, TOML, Properties, INI, HCL, ENV and Flags. Multi file load, data override merge, parse ENV var, binding data to struct.
What are some alternatives?
go-simple-config - open source for accessing and storing configuration
viper - Go configuration with fangs
konfig - Composable, observable and performant config handling for Go for the distributed processing era
go-env - Golang handling of environment values
hjson - Hjson for Go
envconfig - Small library to read your configuration from environment variables
gcfg - read INI-style configuration files into Go structs; supports user-defined types and subsections
config - A lightweight yet powerful configuration manager for the Go programming language
ini - Package ini provides INI file read and write functionality in Go
Genv - Genv is a library for Go (golang) that makes it easy to read and use environment variables in your projects. It also allows environment variables to be loaded from the .env file.
toml - Instream TOML to JSON encoder