v0.0.1
First release of confparse — a declarative command-line argument parser for Go.
Added
Parse(container interface{}) error, which reflects over a pointer-to-struct and registers each field as a standard-libraryflag.- Struct tags
name(flag name),value(string default),usage(help text), andenvVar(environment-variable fallback for the default). - Supported field types:
string,int,bool, andtime.Duration. - Environment extension: when a field's
envVarvariable is set and non-empty, its value becomes the field's default.
Install: go get github.com/memclutter/confparse@v0.0.1