Documentation
¶
Index ¶
- Constants
- Variables
- func Any(rv reflect.Value) any
- func Anys(rv []reflect.Value) []any
- func ZeroValue() reflect.Value
- type ETv
- type FieldOmit
- type Fields
- type MapKeyValue
- type MetaElemCate
- type T
- 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) MapElemType() reflect.Type
- 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) StructTags(tagKey string) Tags
- func (t T) StructTypes() Types
- func (t T) Tag1(tagKey string) 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) 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) 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) ArrayStructSetField(index int, nv map[string]any)
- func (v V) CallMethod(name string, args []any) (rets []any, called bool)
- func (v V) CanElem() bool
- func (v V) Indirect() V
- func (v V) MapDeleteZero()
- func (v V) MapRange() []MapKeyValue
- func (v V) MapSetField(nv map[string]any)
- func (v V) MapValues() map[string]any
- func (v V) SetField(nv map[string]any, index ...int)
- func (v V) SliceCallMethod(name string, args []any) (rets []any, called bool)
- func (v V) SliceStructSetField(index int, nv map[string]any)
- func (v V) StructSet(nv map[string]any)
- type Values
Constants ¶
View Source
const MapElemType = "~map_elem_r_type~"
Variables ¶
View Source
var V2Wrap = safe_reflectv2.Wrap
Functions ¶
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) ArrayStructFields ¶
func (T) ArrayStructTags ¶
func (T) ArrayStructTypes ¶
func (T) MapElemType ¶
func (T) SliceStructFields ¶
func (T) SliceStructTags ¶
func (T) SliceStructTypes ¶
func (T) StructFields ¶
func (T) StructTags ¶
func (T) StructTypes ¶
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) ArrayStructValues ¶
func (Tv) SliceStructValues ¶
func (Tv) StructToMap ¶
func (Tv) StructValues ¶
type V ¶
func (V) ArrayCallMethod ¶
func (V) MapDeleteZero ¶
func (v V) MapDeleteZero()
func (V) MapRange ¶
func (v V) MapRange() []MapKeyValue
func (V) MapSetField ¶
func (V) SliceCallMethod ¶
Click to show internal directories.
Click to hide internal directories.