Skip to content

Releases: fulldump/goconfig

v1.6.1 minoring

01 Feb 12:37
a834093
Compare
Choose a tag to compare

The go.mod added, small maintenance changes, code remains the same.

Eighteventhus

28 Mar 22:53
Compare
Choose a tag to compare

Features

  • Support time.Duration thanks to @sedalu

Seventhus

05 Feb 23:34
f290e1b
Compare
Choose a tag to compare

Features

  • Support slices
  • Improve error messages

Test

  • Add tests to increase code coverage up to 94%

vSixthus

30 Jan 08:30
3484678
Compare
Choose a tag to compare

Same tag as 1.4.0 but prefixed to work well with gomodules

Sixthus

08 May 18:32
3484678
Compare
Choose a tag to compare

Allow anonymous structs.

Fifthus

08 Mar 10:47
Compare
Choose a tag to compare

Allow other flags without exit

Thirdus

10 May 10:25
Compare
Choose a tag to compare

Add ci and fix tag convention issues #4 and #5

Secondus

10 May 09:51
Compare
Choose a tag to compare

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...

Firstus

27 Jul 23:16
Compare
Choose a tag to compare

Functionally closed version.