Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ParseTag = parseTag
Functions ¶
func ClearCache ¶
func ClearCache()
Types ¶
type StructField ¶
type StructIndex ¶
type StructIndex struct { ByPos []StructField ByName map[string]int }
A StructIndex is used by Decoder.Decode() and Encoder.Encode() when decoding-to or encoding-from a struct.
func IndexStruct ¶
func IndexStruct(typ reflect.Type) StructIndex
IndexStruct takes a struct Type, and indexes its fields for use by Decoder.Decode() and Encoder.Encode(). indexStruct caches its results.
Click to show internal directories.
Click to hide internal directories.