Documentation ¶
Index ¶
- Constants
- func Any(rv reflect.Value) any
- func Anys(rv []reflect.Value) []any
- func ToAnySlice(i any) []any
- type ETv
- type FieldOmit
- type Fields
- type MapKeyElem
- type MetaElemCate
- type T
- func (t T) ArrayElemNew() Tv
- func (t T) ArrayStructFields() Fields
- func (t T) ArrayStructTags(tagKey string) Tags
- func (t T) ArrayStructTypes() Types
- func (t T) CanElem() bool
- func (t T) CanSet(st reflect.Type) bool
- func (t T) FieldType() Types
- func (t T) Indirect() T
- func (t T) IndirectElem() T
- func (t T) MapElemNew() Tv
- func (t T) MapElemType() reflect.Type
- func (t T) MapKeyType() reflect.Type
- func (t T) New() Tv
- func (t T) NewElem() Tv
- func (t T) SliceElemNew() Tv
- func (t T) SliceStructFields() Fields
- func (t T) SliceStructTags(tagKey string) Tags
- func (t T) SliceStructTypes() Types
- func (t T) StructFields() Fields
- func (t T) StructRawTag(tagKey string) map[string]string
- func (t T) StructTags(tagKey string) Tags
- func (t T) StructTypes() Types
- func (t T) Tag1(tagKey string) (raw map[string]string)
- func (t T) Tag2(tagKey, valKey string) map[string]string
- func (t T) Tag2VName(tagKey, valKey string) map[string]string
- func (t T) Tags(tagKey string) (tags Tags)
- type Tag
- type Tags
- type Tv
- func (tv Tv) ArrayMapValues() []map[string]any
- func (tv Tv) ArrayStructValues() []map[string]any
- func (tv Tv) CallMethod(name string, args []any) (rets []any, called bool)
- func (tv Tv) ETv() *ETv
- func (tv Tv) FuncCall(in []any) (out []any, called bool)
- func (tv Tv) Indirect() Tv
- func (tv Tv) SliceMapValues() []map[string]any
- func (tv Tv) SliceStructValues() []map[string]any
- func (tv Tv) StructToMap() map[string]any
- func (tv Tv) StructValues() map[string]any
- func (tv Tv) Values() []map[string]any
- type Types
- type V
- func (v V) ArrayCallMethod(name string, args []any) (rets []any, called bool)
- func (v V) ArrayMapSetField(index int, nv map[string]any)
- func (v V) ArrayMapSetField2(nv map[string]any)
- func (v V) ArraySet(index int, i any)
- func (v V) ArrayStructSetField(index int, nv map[string]any)
- func (v V) ArrayStructSetField2(nv map[string]any)
- func (v V) CallMethod(name string, args []any) (rets []any, called bool)
- func (v V) CanElem() bool
- func (v V) I() any
- func (v V) Indirect() V
- func (v V) IterIndex() iter.Seq2[int, reflect.Value]
- func (v V) MapDeleteZero()
- func (v V) MapRange() []MapKeyElem
- func (v V) MapSetField(nv map[string]any)
- func (v V) MapValues() map[string]any
- func (v V) SetField(nv map[string]any)
- func (v V) SetI(i any)
- func (v V) SliceAppend(i any)
- func (v V) SliceCallMethod(name string, args []any) (rets []any, called bool)
- func (v V) SliceMapSetField(index int, nv map[string]any)
- func (v V) SliceMapSetField2(nv map[string]any)
- func (v V) SliceSet(index int, i any)
- func (v V) SliceStructSetField(index int, nv map[string]any)
- func (v V) SliceStructSetField2(nv map[string]any)
- func (v V) StructSet(nv map[string]any)
- type Values
Constants ¶
View Source
const MapElemType = "~map_elem_r_type~"
Variables ¶
This section is empty.
Functions ¶
func ToAnySlice ¶ added in v1.2.48
ToAnySlice []Tpl -> []any [N]Tpl -> []any Tpl -> []any
Types ¶
type FieldOmit ¶
type FieldOmit struct {
// contains filtered or unexported fields
}
func NewFieldOmit ¶
func NewFieldOmit() *FieldOmit
type Fields ¶
type Fields map[string]reflect.StructField
type MetaElemCate ¶
type MetaElemCate int8
type T ¶
func (T) ArrayElemNew ¶ added in v1.2.46
func (T) ArrayStructFields ¶
func (T) ArrayStructTags ¶
func (T) ArrayStructTypes ¶
func (T) IndirectElem ¶ added in v1.2.48
func (T) MapElemNew ¶ added in v1.2.46
func (T) MapElemType ¶
func (T) MapKeyType ¶ added in v1.2.48
func (T) SliceElemNew ¶ added in v1.2.46
func (T) SliceStructFields ¶
func (T) SliceStructTags ¶
func (T) SliceStructTypes ¶
func (T) StructFields ¶
func (T) StructTags ¶
func (T) StructTypes ¶
type Tag ¶
func ParseTagValue ¶ added in v1.2.48
type Tv ¶
func Indirect ¶
Indirect if i is-valid; return Indirect T, Indirect V if i is-not-valid; return Direct T, Direct V
func (Tv) ArrayMapValues ¶ added in v1.2.48
func (Tv) ArrayStructValues ¶
func (Tv) SliceMapValues ¶ added in v1.2.48
func (Tv) SliceStructValues ¶
func (Tv) StructToMap ¶
func (Tv) StructValues ¶
type V ¶
func (V) ArrayCallMethod ¶
func (V) ArrayMapSetField ¶ added in v1.2.48
func (V) ArrayMapSetField2 ¶ added in v1.2.48
func (V) ArrayStructSetField2 ¶ added in v1.2.48
func (V) MapDeleteZero ¶
func (v V) MapDeleteZero()
func (V) MapRange ¶
func (v V) MapRange() []MapKeyElem
func (V) MapSetField ¶
func (V) SliceAppend ¶ added in v1.2.45
func (V) SliceCallMethod ¶
func (V) SliceMapSetField ¶ added in v1.2.48
func (V) SliceMapSetField2 ¶ added in v1.2.48
func (V) SliceStructSetField2 ¶ added in v1.2.48
Click to show internal directories.
Click to hide internal directories.