Documentation
¶
Index ¶
Constants ¶
View Source
const ( TagEnv = "env" TagEnvHelp = "env-help" TagDescription = "description" TagDefault = "default" TagParser = "parser" )
Variables ¶
View Source
var ( ErrNotPointer = errors.New("not a pointer to a value") ErrInvalid = errors.New("nil value") ErrNotStructPointer = errors.New("not a pointer to a struct") )
View Source
var ErrNotFound = errors.New("env value not found")
Functions ¶
func RegisterParser ¶
Types ¶
type ErrMismatchedParseTypes ¶
func (*ErrMismatchedParseTypes) Error ¶
func (err *ErrMismatchedParseTypes) Error() string
type ErrOpFail ¶
type ErrOpFail[Op fmt.Stringer] struct { Op Op Field reflect.StructField Err error }
type ErrParserNotFound ¶
type ErrParserNotFound struct {
Name string
}
func (*ErrParserNotFound) Error ¶
func (err *ErrParserNotFound) Error() string
type ErrTagNotSet ¶
type ErrTagNotSet struct {
Name string
}
func (*ErrTagNotSet) Error ¶
func (err *ErrTagNotSet) Error() string
type OpReadTags ¶
type OpReadTags struct{}
func (OpReadTags) String ¶
func (OpReadTags) String() string
type TagOpParse ¶
type TagOpParse struct{ Name string }
func (TagOpParse) String ¶
func (top TagOpParse) String() string
Click to show internal directories.
Click to hide internal directories.