iniflags
iniflags copied to clipboard
Hybrid configuration library
https://github.com/vharitonsky/iniflags/blob/e586d5c5197c636313580bf6eb2f54522bd65147/iniflags.go#L22 config = flag.String("config", "**./config.ini**", "Path to ini config for using in go flags. May be relative to the current executable path.")
Solves #25
pflag?
I like the way this library goes about solving the go config issue. I suspect this could this be made to work with pflag? https://github.com/ogier/pflag. Do you see it being...
I would like to display my own message if something goes wrong when reading flags from the config file, but `Parse()` panics, which means I must duplicate any and all...
It would be nice to be able define long and short versions of variables. Something like: > hostname = flag.String("hostname","h","localhost", "hostname") where -host and -h will be treated the same
The dev.ini example is not working because there is a whitespace between the `#` and `import`: false: `# import "base.ini"` correct: `#import "base.ini"`
`sighupHandler` is enabled by default. So we can't use `SIGHUP` for something else or we can't disable it if we don't want the magic update behaviour. This feature should be...
It would be nice to be able to serialize flags for easy passing, probably into as map[string]interface{}.
Is there a way to have multiline strings in the config file? Something like ``` ini [keys] publicKey = ` BEGIN RSA etc etc etc END RSA ` ```