Documentation ¶
Index ¶
- Constants
- func Elem(v reflect.Value) reflect.Value
- func HasChild(v reflect.Value) bool
- func IsEmpty(v reflect.Value) bool
- func IsEmptyValue(v reflect.Value) bool
- func IsEqual(src, dst interface{}) bool
- func IsFunc(val interface{}) bool
- func IsNil(v reflect.Value) bool
- func Len(v reflect.Value) int
- func SliceSubKind(typ reflect.Type) reflect.Kind
- type BKind
- type Type
- type Value
Constants ¶
View Source
const ( // Int for all intX types Int = BKind(reflect.Int) // Uint for all uintX types Uint = BKind(reflect.Uint) // Float for all floatX types Float = BKind(reflect.Float32) // Array for array,slice types Array = BKind(reflect.Array) // Complex for all complexX types Complex = BKind(reflect.Complex64) )
base kinds
Variables ¶
This section is empty.
Functions ¶
func IsEmptyValue ¶ added in v0.5.8
IsEmptyValue reflect value check. From src/pkg/encoding/json/encode.go.
Types ¶
type BKind ¶
type BKind uint
BKind base data kind type
func ToBaseKind ¶
ToBaseKind convert reflect.Kind to base kind
type Value ¶
Value struct
func (Value) Elem ¶
Elem returns the value that the interface v contains or that the pointer v points to.
TIP: not like reflect.Value.Elem. otherwise, will return self.
Click to show internal directories.
Click to hide internal directories.