Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Buffer ¶
type Common ¶
type Common struct {
}
Common is used encoding/decoding
func (*Common) CheckField ¶
func (c *Common) CheckField(field reflect.StructField) (public, omit bool, name string)
CheckField returns flag whether should encode/decode or not and field name
type FieldInfo ¶ added in v3.1.0
type FieldInfo struct {
Path []int // path to reach this field (indices for embedded structs)
Name string // field name or tag
Omit bool // omitempty flag
Tagged bool // tag name explicitly set
OmitPaths [][]int // paths to embedded fields with omitempty
}
FieldInfo holds information about a struct field including its path for embedded structs
Click to show internal directories.
Click to hide internal directories.