Versions in this module Expand all Collapse all v1 v1.0.1 Sep 21, 2019 v1.0.0 Aug 15, 2019 Changes in this version + var ErrHelpWanted = errors.New("help wanted") + var ErrInvalidStruct = errors.New("configuration must be a struct pointer") + func Parse(args []string, namespace string, cfgStruct interface{}, sources ...Sourcer) error + func String(v interface{}) (string, error) + func Usage(namespace string, v interface{}) (string, error) + type Args []string + func (a Args) Num(i int) string + type FieldError struct + func (err *FieldError) Error() string + type Setter interface + Set func(value string) error + type Sourcer interface + Source func(fld field) (string, bool)