Versions in this module Expand all Collapse all v1 v1.0.0 Nov 15, 2024 Changes in this version + const DefaultListFormat + const DefaultTableFormat + var ErrInvalidSpecification = errors.New("specification must be a struct pointer") + func CheckDisallowed(prefix string, spec interface{}, options ...Option) error + func MustProcess(prefix string, spec interface{}) + func Process(prefix string, spec interface{}, options ...Option) error + func Usage(prefix string, spec interface{}) error + func Usagef(prefix string, spec interface{}, out io.Writer, format string) error + func Usaget(prefix string, spec interface{}, out io.Writer, tmpl *template.Template) error + type Decoder interface + Decode func(value string) error + type Environment interface + Environ func() []string + LookupEnv func(key string) (string, bool) + type Option func(*libConfig) + func WithEnvironment(env Environment) Option + type ParseError struct + Err error + FieldName string + KeyName string + TypeName string + Value string + func (e *ParseError) Error() string + type Setter interface + Set func(value string) error