Versions in this module Expand all Collapse all v1 v1.10.1 Nov 28, 2024 v1.10.0 Nov 28, 2024 Changes in this version + var DefaultMapper = NewMapperFunc("sqlike", nil) + func Deref(t reflect.Type) reflect.Type + func FieldByIndexes(v reflect.Value, indexes []int) reflect.Value + func FieldByIndexesReadOnly(v reflect.Value, indexes []int) reflect.Value + func Indirect(v reflect.Value) reflect.Value + func IndirectInit(v reflect.Value) reflect.Value + func Init(v reflect.Value) reflect.Value + func IsKind(t reflect.Type, k reflect.Kind) bool + func IsNull(v reflect.Value) bool + func IsNullable(t reflect.Type) bool + func IsZero(v reflect.Value) bool + func Set(src, v reflect.Value) + func TypeOf(i interface{}) reflect.Type + func ValueOf(i interface{}) reflect.Value + func Zero(t reflect.Type) (v reflect.Value) + type Fields []StructFielder + func (x Fields) FindIndex(cb func(f StructFielder) bool) int + func (x Fields) Len() int + func (x Fields) Less(i, j int) bool + func (x Fields) Swap(i, j int) + type FormatFunc func(string) string + type MapFunc func(StructFielder) (skip bool) + type Mapper struct + func NewMapperFunc(tag string, fmtFunc FormatFunc) *Mapper + func (m *Mapper) CodecByType(t reflect.Type) Structer + func (m *Mapper) FieldByIndexes(v reflect.Value, idxs []int) reflect.Value + func (m *Mapper) FieldByIndexesReadOnly(v reflect.Value, idxs []int) reflect.Value + func (m *Mapper) FieldByName(v reflect.Value, name string) reflect.Value + func (m *Mapper) LookUpFieldByName(v reflect.Value, name string) (reflect.Value, bool) + func (m *Mapper) TraversalsByName(t reflect.Type, names []string) (idxs [][]int) + func (m *Mapper) TraversalsByNameFunc(t reflect.Type, names []string, fn func(int, []int)) (idxs [][]int) + type Struct struct + func (s *Struct) Fields() []StructFielder + func (s *Struct) GetByTraversal(index []int) StructFielder + func (s *Struct) LookUpFieldByName(name string) (StructFielder, bool) + func (s *Struct) Properties() []StructFielder + type StructField struct + func (sf *StructField) Children() []StructFielder + func (sf *StructField) Index() []int + func (sf *StructField) IsEmbedded() bool + func (sf *StructField) IsNullable() bool + func (sf *StructField) Name() string + func (sf *StructField) Parent() StructFielder + func (sf *StructField) ParentByTraversal(cb func(StructFielder) bool) StructFielder + func (sf *StructField) Tag() StructTag + func (sf *StructField) Type() reflect.Type + type StructFielder interface + Children func() []StructFielder + Index func() []int + IsEmbedded func() bool + IsNullable func() bool + Name func() string + Parent func() StructFielder + ParentByTraversal func(cb func(StructFielder) bool) StructFielder + Tag func() StructTag + Type func() reflect.Type + type StructMapper interface + CodecByType func(t reflect.Type) Structer + FieldByIndexes func(v reflect.Value, idxs []int) reflect.Value + FieldByIndexesReadOnly func(v reflect.Value, idxs []int) reflect.Value + FieldByName func(v reflect.Value, name string) reflect.Value + LookUpFieldByName func(v reflect.Value, name string) (reflect.Value, bool) + TraversalsByName func(t reflect.Type, names []string) (idxs [][]int) + TraversalsByNameFunc func(t reflect.Type, names []string, fn func(int, []int)) (idxs [][]int) + type StructTag struct + func (st StructTag) Get(key string) string + func (st StructTag) LookUp(key string) (val string, exist bool) + func (st StructTag) Name() string + func (st StructTag) OriginalName() string + type Structer interface + Fields func() []StructFielder + GetByTraversal func(index []int) StructFielder + LookUpFieldByName func(name string) (StructFielder, bool) + Properties func() []StructFielder + type Zeroer interface + IsZero func() bool