Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNotAPointer error when not a pointer ErrNotAPointer = errors.New("Not a pointer") // ErrNotAStruct error when not a struct ErrNotAStruct = errors.New("Not a struct") // ErrTypeNotSupported error when type not supported ErrTypeNotSupported = errors.New("Type not supported") // ErrUndefinedTag error when Tag var is not defined ErrUndefinedTag = errors.New("Undefined tag") // Tag set the main tag Tag string // TagDefault set tag default TagDefault string // TagHelper set tag usage TagHelper string // TagDisabled used to not process an input TagDisabled string // TagSeparator separe names on environment variables TagSeparator string // Prefix is a string that would be placed at the beginning of the generated tags. Prefix string // ParseMap points to each of the supported types ParseMap map[reflect.Kind]ReflectFunc )
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
Click to show internal directories.
Click to hide internal directories.