Documentation ¶
Index ¶
- func Indirect(value interface{}) interface{}
- func IndirectVal(val reflect.Value) reflect.Value
- func IsKindComplex(k reflect.Kind) bool
- func IsKindFloat(k reflect.Kind) bool
- func IsKindInt(k reflect.Kind) bool
- func IsKindLength(k reflect.Kind) bool
- func IsKindNillable(k reflect.Kind) bool
- func IsKindNumeric(k reflect.Kind) bool
- func IsKindUint(k reflect.Kind) bool
- func Recover(f func() error) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Indirect ¶
func Indirect(value interface{}) interface{}
Indirect will perform recursive indirection on the given value. It should never panic and will return a value unless indirection is impossible due to infinite recursion in cases like `type Element *Element`.
func IndirectVal ¶
IndirectVal is like Indirect but faster when the caller is using working with a reflect.Value.
func IsKindComplex ¶
IsKindComplex returns true if the given Kind is a complex value.
func IsKindFloat ¶
IsKindFloat returns true if the given Kind is a float value.
func IsKindLength ¶
IsKindLength will return true if the Kind has a length.
func IsKindNillable ¶
IsKindNillable will return true if the Kind is a chan, func, interface, map, pointer, or slice value, false otherwise.
func IsKindNumeric ¶
IsKindNumeric returns true if the given Kind is a numeric value.
func IsKindUint ¶
IsKindUint returns true if the given Kind is a uint value.
Types ¶
This section is empty.