Documentation
¶
Overview ¶
Package structure defines a simplified structure representation.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FieldBase ¶
type FieldBase struct {
Index uint64 // Field position in the structure.
Name string
Tag reflect.StructTag
IsEmbedded bool
Doc string
}
FieldBase contains basic data shared by all structure fields.
type ScalarField ¶
type ScalarField struct {
FieldBase
ScalarType
}
ScalarField represents a field with a non-structure type.
type ScalarType ¶
ScalarType represents the type information of a non-structure field.
type StructField ¶
type StructField struct {
FieldBase
StructType
}
StructField represents a field with a nested structure type.
type StructFields ¶
type StructFields struct {
ScalarFields []ScalarField
StructFields []StructField
ScalarSliceFields []ScalarField
StructSliceFields []StructField
}
StructFields groups fields in a structure by their type.
type StructType ¶
type StructType struct {
TypeBase
Fields StructFields
}
StructType represents the type information of a structure field.
Click to show internal directories.
Click to hide internal directories.