All Versions
7
Latest Version
Avg Release Cycle
162 days
Latest Release
1999 days ago
Changelog History
Changelog History
-
v1.6.0 Changes
March 28, 2019๐ Features
- ๐ Support
time.Duration
thanks to @sedalu
- ๐ Support
-
v1.5.0 Changes
February 05, 2019๐ Features
- ๐ Support slices
- ๐ Improve error messages
โ Test
- โ Add tests to increase code coverage up to 94%
-
v1.4.0 Changes
May 08, 2018๐ Allow anonymous structs.
-
v1.3.0 Changes
March 08, 2018๐ Allow other flags without exit
-
v1.2.0 Changes
May 10, 2017 -
v1.1.0 Changes
May 10, 2017๐ 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...
-
v1.0.0 Changes
July 27, 2016Functionally closed version.