Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrNotAPointer = errors.New("Not a pointer")
ErrNotAPointer error when not a pointer
var ErrNotAStruct = errors.New("Not a struct")
ErrNotAStruct error when not a struct
var ErrTypeNotSupported = errors.New("Type not supported")
ErrTypeNotSupported error when type not supported
var ErrUndefinedTag = errors.New("Undefined tag")
ErrUndefinedTag error when Tag var is not defined
var ParseMap map[reflect.Kind]ReflectFunc
ParseMap points to each of the supported types
var Prefix string
Prefix is a string that would be placed at the beginning of the generated tags.
var Tag string
Tag set the main tag
var TagDefault string
TagDefault set tag default
var TagDisabled string
TagDisabled used to not process an input
var TagSeparator string
TagSeparator separe names on environment variables
Functions ¶
func ReflectStruct ¶
ReflectStruct is called when the Parse encounters a sub-structure in the current structure and then calls Parsr again to treat the fields of the sub-structure.
Types ¶
type ReflectFunc ¶
ReflectFunc type used to create funcrions to parse struct and tags