Skip to content

Releases: fulldump/goconfig

Septum Decimalus

28 Jul 02:45
9b627be

Choose a tag to compare

Chore:

  • Add environment variables to -help

Siventhus Septimum

28 Jul 02:23

Choose a tag to compare

Fix:

  • Anonymous structs in JSON

Feat:

  • Implicit config.json

Chore:

  • Better README.md
  • Improve logo for dark mode GitHub

v1.6.1 minoring

01 Feb 12:37
a834093

Choose a tag to compare

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

Eighteventhus

28 Mar 22:53

Choose a tag to compare

Features

  • Support time.Duration thanks to @sedalu

Seventhus

05 Feb 23:34
f290e1b

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

Choose a tag to compare

Same tag as 1.4.0 but prefixed to work well with gomodules

Sixthus

08 May 18:32
3484678

Choose a tag to compare

Allow anonymous structs.

Fifthus

08 Mar 10:47

Choose a tag to compare

Allow other flags without exit

Thirdus

10 May 10:25

Choose a tag to compare

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

Secondus

10 May 09:51

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