Documentation ¶
Index ¶
- func IsStruct(typ Kind) bool
- func IsZero(v interface{}) bool
- func Name(v interface{}) string
- func New(v interface{}) interface{}
- func NewArray(v interface{}) interface{}
- func Path(typ reflect.Type, path ...string) string
- func ToSlice(arr interface{}) []interface{}
- func TrueType(typ reflect.Type) reflect.Type
- func TrueTypeof(v interface{}) reflect.Type
- func TrueTypeofValue(v interface{}) (typ reflect.Type, i interface{})
- func TrueValue(typ reflect.Value) reflect.Value
- func TrueValueOf(v interface{}) reflect.Value
- func ValueOfName(data interface{}, filedName string) (interface{}, error)
- type Kind
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶ added in v1.20.0
func New(v interface{}) interface{}
New returns a Value representing a pointer to a new zero value
func NewArray ¶ added in v1.20.6
func NewArray(v interface{}) interface{}
NewArray returns a []Value representing a pointer to a new zero value
func ToSlice ¶
func ToSlice(arr interface{}) []interface{}
ToSlice arr must array data array struct data to []interface
func TrueTypeof ¶ added in v1.30.31
func TrueTypeofValue ¶ added in v1.30.31
func TrueValueOf ¶ added in v1.30.31
func ValueOfName ¶ added in v1.30.31
ValueOfName reflect value via field name
Types ¶
Click to show internal directories.
Click to hide internal directories.