Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FieldMetadata ¶
type FieldMetadata struct { Index []int Paths TagsPath Type reflect.Type ImplementUnmarshaller bool ArrayOrSlice bool DefaultValue string Exploder string }
FieldMetadata contains all the necessary field to decode
func (FieldMetadata) GetDefaultFieldName ¶
func (f FieldMetadata) GetDefaultFieldName() string
type StructAnalyzer ¶
type StructAnalyzer struct {
// contains filtered or unexported fields
}
StructAnalyzer is the cache struct analyzer
func NewStructAnalyzer ¶
func NewStructAnalyzer(stringsTags, valueTags []string, mainStructType reflect.Type) *StructAnalyzer
NewStructAnalyzer instantiate a new StructAnalyzer
func (StructAnalyzer) Cache ¶
func (s StructAnalyzer) Cache() StructCache
Cache will take all fields which contain a tag to be lookup.
type StructCache ¶
type StructCache struct { IsRoot bool Index []int Resolvable []FieldMetadata Child []StructCache }
StructCache
func (StructCache) String ¶
func (s StructCache) String() string
String is a way to debug StructCache
Click to show internal directories.
Click to hide internal directories.