Versions in this module Expand all Collapse all v0 v0.1.1 Apr 6, 2026 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 + func (e AggregateError) Unwrap() []error + type EmptyEnvVarError = EmptyVarError + type EmptyVarError struct + Key string + func (e EmptyVarError) Error() string + type EnvVarIsNotSetError = VarIsNotSetError + type FieldParams struct + DefaultValue string + Expand bool + HasDefaultValue bool + Ignored bool + Init 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 + DefaultValueTagName string + Environment map[string]string + FuncMap map[reflect.Type]ParserFunc + OnSet OnSetFn + Prefix string + PrefixTagName string + RequiredIfNoDef bool + SetDefaultsForZeroValuesOnly 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 VarIsNotSetError struct + Key string + func (e VarIsNotSetError) Error() string