Versions in this module Expand all Collapse all v4 v4.0.0 May 20, 2023 Changes in this version + var ErrHelpWanted = errors.New("help wanted") + var ErrInvalidStruct = errors.New("configuration must be a struct pointer") + func Parse(args []string, prefix string, cfg interface{}, parsers ...Parsers) (string, error) + func String(v interface{}) (string, error) + func UsageInfo(namespace string, v interface{}) (string, error) + func VersionInfo(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 + Mask bool + Noprint bool + Required bool + ShortFlagChar rune + type Parsers interface + Process func(prefix string, cfg interface{}) error + type Setter interface + Set func(value string) error + type Version struct + Build string + Desc string