Versions in this module Expand all Collapse all v8 v8.1.1 May 28, 2023 Changes in this version + func Parse(v interface{}) error + func ParseWithOptions(v interface{}, opts Options) error + type AggregateError struct + Errors []error + func (e AggregateError) Error() string + func (e AggregateError) Is(err error) bool + type Collector interface + AddCodeValue func(key string, isPtr bool, val string) + Set func(key string, envF EnvField) + var DefaultCollector Collector = &EmptyCollector{} + type EmptyCollector struct + func (e *EmptyCollector) AddCodeValue(key string, isPtr bool, val string) + func (e *EmptyCollector) Set(key string, envF EnvField) + type EmptyEnvVarError struct + Key string + func (e EmptyEnvVarError) Error() string + type EnvField struct + CodeValue string + Default string + DefaultExist bool + EnvValue string + Expand bool + File bool + IsPtr bool + NotEmpty bool + Required bool + Separator string + Unset bool + type EnvVarIsNotSetError struct + Key string + func (e EnvVarIsNotSetError) Error() string + type FormatFunc func(i reflect.Value) (string, error) + type LoadFileContentError struct + Err error + Filename string + Key string + func (e LoadFileContentError) Error() string + type NoParserError struct + Name string + Type reflect.Type + func (e NoParserError) Error() string + type NoSupportedTagOptionError struct + Tag string + func (e NoSupportedTagOptionError) Error() string + type NotStructPtrError struct + func (e NotStructPtrError) Error() string + type OnSetFn func(tag string, value interface{}, isDefault bool) + type Options struct + Collector Collector + Environment map[string]string + FormatMap map[reflect.Type]FormatFunc + FuncMap map[reflect.Type]ParserFunc + OnSet OnSetFn + Prefix string + RequiredIfNoDef bool + TagName string + UseFieldNameByDefault bool + type ParseError struct + Err error + Name string + Type reflect.Type + func (e ParseError) Error() string + type ParseValueError struct + Err error + Msg string + func (e ParseValueError) Error() string + type ParserFunc func(v string) (interface{}, error) + type SimpleCollector struct + Map map[string]*EnvField + func NewSimpleCollector() *SimpleCollector + func (c *SimpleCollector) AddCodeValue(key string, isPtr bool, val string) + func (c *SimpleCollector) Set(key string, envF EnvField)