Releases: fulldump/goconfig
Releases · fulldump/goconfig
Septum Decimalus
Siventhus Septimum
Fix:
- Anonymous structs in JSON
Feat:
- Implicit
config.json
Chore:
- Better README.md
- Improve logo for dark mode GitHub
v1.6.1 minoring
The go.mod added, small maintenance changes, code remains the same.
Eighteventhus
Features
- Support
time.Durationthanks to @sedalu
Seventhus
vSixthus
Sixthus
Fifthus
Thirdus
Secondus
Now goconfig support environment variables in this precedence order:
default < config file < environment vars < cli args
For example, if my config struct is:
type Config struct {
MyDatabase MongoConfig
}
type MongoConfig struct {
Uri string `Mongo uri in mongodb://... format`
Timeout int `Socket timeout the firs time`
}The environment variable to change Uri is: MYDATABASE_URI="mongodb://...." and that value can be rewrited by equivalent command line argument: --mydatabase.uri mongodb://blahblah...