Versions in this module Expand all Collapse all v0 v0.1.0 Jun 1, 2021 Changes in this version + var ErrInvalidSpecification = errors.New("specification must be a struct pointer") + type Config struct + func New(spec interface{}) *Config + func (c *Config) BindFlags(flagSet *pflag.FlagSet) *Config + func (c *Config) FromEnvironment(envPrefix string) *Config + func (c *Config) Parse() error + type ErrInvalidField struct + Err error + Field string + func (e *ErrInvalidField) Error() string + type ErrInvalidFlagFormat struct + Format string + func (e *ErrInvalidFlagFormat) Error() string + type ErrRequiredFields struct + Fields []string + func (e *ErrRequiredFields) Error() string + type ErrUnsupportedFieldType struct + Type string + func (e *ErrUnsupportedFieldType) Error() string