Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterType ¶
func RegisterType(t *Type)
Types ¶
type FSEmbedder ¶
type FSEmbedder struct {
// contains filtered or unexported fields
}
FSEmbedder represents fs embedder
type Field ¶
type Field struct {
// Name is the field name.
Name string
// PkgPath is the package path that qualifies a lower case (unexported)
// field name. It is empty for upper case (exported) field names.
PkgPath string
Type ReflectType // field type
Tag reflect.StructTag // field tag string
Offset uintptr // offset within struct, in bytes
Index []int // index sequence for Type.FieldByIndex
Anonymous bool // is an embedded field
}
type MapType ¶
type MapType struct {
KeyType reflect.Type
ValueType *ReflectType
}
type ReflectType ¶
type SliceType ¶
type SliceType struct {
ElementType *ReflectType
}
type StructType ¶
type TagGenerator ¶
type TagGenerator func(field *reflect.StructField, embedder Embedder) reflect.StructTag
type Type ¶
type Type struct {
Name string
Package string // import package alias, e.g. "mypkg"
PkgPath string // PkgPath is the package path of the type, e.g. "github.com/repo/project/mypkg"
CompiledType *ReflectType
GeneratedType *ReflectType // created by reflect.StructOf
Embedder Embedder // if type has dependency on fs embedder
}
func LookupType ¶
func (*Type) ElementType ¶
Click to show internal directories.
Click to hide internal directories.