Documentation ¶
Overview ¶
Package ff contains a struct flattening utility.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FlattenedField ¶
type FlattenedField struct { Path []int Field reflect.StructField }
FlattenedField is a struct that contains the path indices and the field.
type FlattenedStruct ¶
type FlattenedStruct struct { Type reflect.Type Fields []*FlattenedField }
FlattenedStruct is a struct that contains the flattened fields.
func Parse ¶
func Parse(t reflect.Type) *FlattenedStruct
Parse is to parse the embedding struct and return the flattened struct.
Click to show internal directories.
Click to hide internal directories.