Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FieldInfo ¶
type FieldInfo struct {
Name string // Go struct field name
Offset uintptr // Memory offset from struct base
Type reflect.Type // Field type
Tags map[string][]string // Parsed tags for the configured tagName
}
FieldInfo holds identity and tag metadata for a struct field.
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
Registry manages the mapping of struct types to their field offsets.
func NewRegistry ¶
NewRegistry creates a new Registry that parses the given tagName.
Click to show internal directories.
Click to hide internal directories.