Versions in this module Expand all Collapse all v11 v11.0.1 May 17, 2024 v11.0.0 Apr 16, 2024 Changes in this version + func Must[T any](t T, err error) T + func Parse(v interface{}) error + func ParseAsWithOptions[T any](opts Options) (T, error) + func ParseAs[T any]() (T, error) + func ParseWithOptions(v interface{}, opts Options) error + func ToMap(env []string) map[string]string + type AggregateError struct + Errors []error + func (e AggregateError) Error() string + func (e AggregateError) Is(err error) bool + type EmptyEnvVarError struct + Key string + func (e EmptyEnvVarError) Error() string + type EnvVarIsNotSetError struct + Key string + func (e EnvVarIsNotSetError) Error() string + type FieldParams struct + DefaultValue string + Expand bool + HasDefaultValue bool + Key string + LoadFile bool + NotEmpty bool + OwnKey string + Required bool + Unset bool + func GetFieldParams(v interface{}) ([]FieldParams, error) + func GetFieldParamsWithOptions(v interface{}, opts Options) ([]FieldParams, 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 + Environment map[string]string + 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) Other modules containing this package github.com/caarlos0/env github.com/caarlos0/env/v10 github.com/caarlos0/env/v5 github.com/caarlos0/env/v6 github.com/caarlos0/env/v7 github.com/caarlos0/env/v8 github.com/caarlos0/env/v9