Versions in this module Expand all Collapse all v1 v1.0.0 Oct 26, 2020 Changes in this version + var ErrHelpWanted = errors.New("help wanted") + var ErrInvalidStruct = errors.New("configuration must be a struct pointer") + var ErrVersionWanted = errors.New("version wanted") + 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) + func VersionString(namespace string, v interface{}) (string, error) + type Args []string + func (a Args) Num(i int) string + type Field struct + BoolField bool + EnvKey []string + Field reflect.Value + FlagKey []string + Name string + Options FieldOptions + type FieldError struct + func (err *FieldError) Error() string + type FieldOptions struct + DefaultVal string + EnvName string + FlagName string + Help string + Noprint bool + Required bool + ShortFlagChar rune + type Setter interface + Set func(value string) error + type Sourcer interface + Source func(fld Field) (string, bool) + type Version struct + Desc string + SVN string