multiconfig icon indicating copy to clipboard operation
multiconfig copied to clipboard

Load configuration from multiple sources in Go

Results 16 multiconfig issues
Sort by recently updated
recently updated
newest added

This PR adds the support of the `uint` `uint16` `uint32` `uint64` types in the config.

``` #config.toml title = "blabla" [servers] [servers.a] ip = "1.1.1.1" dc = "abc" [servers.b] ip = "2.2.2.2" dc = "cba" #main.go type ( WebSiteConfig struct { Title string Servers map[string]Server...

A common case for production is you need to use a command line parameter to specify the path of config file, then read and parse it. But that parameter option...

Unless I'm missing something obvious, I can't find a way to specify configuration file on command line like `app -conf config.toml` Using the flags package on top of multiconfig breaks...

In which order does the lib load values? Does the config file override command line flag?

I suffer an error:`panic: ConfigTOML flag redefined: log-filename` in such a toml file: ``` [Log] Filename = 'file1' [Kafka] [Kafka.Log] Filename = 'file2' ``` The flag constructor doesn't parse `-kafka-log-filename`.

code: m := multiconfig.NewWithPath(configPath) config := new(common.Configs) m.MustLoad(config) app -help Usage of app: ... ... flag: help requested This panic arises func (d *DefaultLoader) MustLoad(conf interface{}) Want to know why

Validates for the required tag for all the fields and bundles all the validation failures instead of first error.

Add validator support for pointer to struct. fix https://github.com/koding/multiconfig/issues/71

I always have config file locally. But the production version load with env variable.