Versions in this module Expand all Collapse all v1 v1.0.1 May 22, 2020 v1.0.0 May 22, 2020 Changes in this version + var TYPE_BOOL = reflect.TypeOf(true) + var TYPE_FLOAT32 = reflect.TypeOf(float32(0)) + var TYPE_FLOAT64 = reflect.TypeOf(float64(0)) + var TYPE_INT = reflect.TypeOf(int(0)) + var TYPE_INT16 = reflect.TypeOf(int16(0)) + var TYPE_INT32 = reflect.TypeOf(int32(0)) + var TYPE_INT64 = reflect.TypeOf(int64(0)) + var TYPE_INT8 = reflect.TypeOf(int8(0)) + var TYPE_INTERFACE_INTERFACE_MAP = reflect.TypeOf(map[interface{}]interface{}(nil)) + var TYPE_INTERFACE_SLICE = reflect.TypeOf([]interface{}(nil)) + var TYPE_STRING = reflect.TypeOf("") + var TYPE_STRING_INTERFACE_MAP = reflect.TypeOf(map[string]interface{}(nil)) + var TYPE_STRING_SLICE = reflect.TypeOf([]string(nil)) + var TYPE_STRING_STRING_MAP = reflect.TypeOf(map[string]string(nil)) + var TYPE_UINT = reflect.TypeOf(uint(0)) + var TYPE_UINT16 = reflect.TypeOf(uint16(0)) + var TYPE_UINT32 = reflect.TypeOf(uint32(0)) + var TYPE_UINT64 = reflect.TypeOf(uint64(0)) + var TYPE_UINT8 = reflect.TypeOf(uint8(0)) + func AsBool(value interface{}) bool + func AsBoolSlice(values interface{}) []bool + func AsDuration(value interface{}) time.Duration + func AsFloat32(value interface{}) float32 + func AsFloat32Slice(values interface{}) []float32 + func AsFloat64(value interface{}) float64 + func AsFloat64Slice(values interface{}) []float64 + func AsIP(value interface{}) net.IP + func AsInt(value interface{}) int + func AsInt16(value interface{}) int16 + func AsInt16Slice(values interface{}) []int16 + func AsInt32(value interface{}) int32 + func AsInt32Slice(values interface{}) []int32 + func AsInt64(value interface{}) int64 + func AsInt64Slice(values interface{}) []int64 + func AsInt8(value interface{}) int8 + func AsInt8Slice(values interface{}) []int8 + func AsIntSlice(values interface{}) []int + func AsInterfaceInterfaceMap(value interface{}) map[interface{}]interface + func AsLocation(value interface{}) *time.Location + func AsString(value interface{}) string + func AsStringInterfaceMap(value interface{}) map[string]interface + func AsStringSlice(values interface{}) []string + func AsStringStringMap(value interface{}) map[string]string + func AsTime(value interface{}) time.Time + func AsURL(value interface{}) *url.URL + func AsUint(value interface{}) uint + func AsUint16(value interface{}) uint16 + func AsUint16Slice(values interface{}) []uint16 + func AsUint32(value interface{}) uint32 + func AsUint32Slice(values interface{}) []uint32 + func AsUint64(value interface{}) uint64 + func AsUint64Slice(values interface{}) []uint64 + func AsUint8(value interface{}) uint8 + func AsUint8Slice(values interface{}) []uint8 + func AsUintSlice(values interface{}) []uint + func ConvertAs(value interface{}, rtype reflect.Type) interface + func ConvertTo(value interface{}, rtype reflect.Type) (interface{}, error) + func Indirect(a interface{}) interface + func ToBool(value interface{}) (bool, error) + func ToBoolSlice(values interface{}) ([]bool, error) + func ToDuration(value interface{}) (time.Duration, error) + func ToFloat32(value interface{}) (float32, error) + func ToFloat32Slice(values interface{}) ([]float32, error) + func ToFloat64(value interface{}) (float64, error) + func ToFloat64Slice(values interface{}) ([]float64, error) + func ToIP(value interface{}) (net.IP, error) + func ToInt(value interface{}) (int, error) + func ToInt16(value interface{}) (int16, error) + func ToInt16Slice(values interface{}) ([]int16, error) + func ToInt32(value interface{}) (int32, error) + func ToInt32Slice(values interface{}) ([]int32, error) + func ToInt64(value interface{}) (int64, error) + func ToInt64Slice(values interface{}) ([]int64, error) + func ToInt8(value interface{}) (int8, error) + func ToInt8Slice(values interface{}) ([]int8, error) + func ToIntSlice(values interface{}) ([]int, error) + func ToInterfaceInterfaceMap(value interface{}) (map[interface{}]interface{}, error) + func ToLocation(value interface{}) (*time.Location, error) + func ToString(value interface{}) (string, error) + func ToStringInterfaceMap(value interface{}) (map[string]interface{}, error) + func ToStringSlice(values interface{}) ([]string, error) + func ToStringStringMap(value interface{}) (map[string]string, error) + func ToTime(value interface{}) (time.Time, error) + func ToURL(value interface{}) (*url.URL, error) + func ToUint(value interface{}) (uint, error) + func ToUint16(value interface{}) (uint16, error) + func ToUint16Slice(values interface{}) ([]uint16, error) + func ToUint32(value interface{}) (uint32, error) + func ToUint32Slice(values interface{}) ([]uint32, error) + func ToUint64(value interface{}) (uint64, error) + func ToUint64Slice(values interface{}) ([]uint64, error) + func ToUint8(value interface{}) (uint8, error) + func ToUint8Slice(values interface{}) ([]uint8, error) + func ToUintSlice(values interface{}) ([]uint, error) + type Value struct + Data interface{} + func NewValue(v interface{}) *Value + func (v *Value) AsBool() bool + func (v *Value) AsBoolSlice() []bool + func (v *Value) AsFloat32() float32 + func (v *Value) AsFloat32Slice() []float32 + func (v *Value) AsFloat64() float64 + func (v *Value) AsFloat64Slice() []float64 + func (v *Value) AsInt() int + func (v *Value) AsInt16() int16 + func (v *Value) AsInt16Slice() []int16 + func (v *Value) AsInt32() int32 + func (v *Value) AsInt32Slice() []int32 + func (v *Value) AsInt64() int64 + func (v *Value) AsInt64Slice() []int64 + func (v *Value) AsInt8() int8 + func (v *Value) AsInt8Slice() []int8 + func (v *Value) AsIntSlice() []int + func (v *Value) AsInterfaceInterfaceMap() map[interface{}]interface{} + func (v *Value) AsString() string + func (v *Value) AsStringInterfaceMap() map[string]interface{} + func (v *Value) AsStringSlice() []string + func (v *Value) AsStringStringMap() map[string]string + func (v *Value) AsUint() uint + func (v *Value) AsUint16() uint16 + func (v *Value) AsUint16Slice() []uint16 + func (v *Value) AsUint32() uint32 + func (v *Value) AsUint32Slice() []uint32 + func (v *Value) AsUint64() uint64 + func (v *Value) AsUint64Slice() []uint64 + func (v *Value) AsUint8() uint8 + func (v *Value) AsUint8Slice() []uint8 + func (v *Value) AsUintSlice() []uint + func (v *Value) IsNil() bool + func (v *Value) ToBool() (bool, error) + func (v *Value) ToBoolSlice() ([]bool, error) + func (v *Value) ToFloat32() (float32, error) + func (v *Value) ToFloat32Slice() ([]float32, error) + func (v *Value) ToFloat64() (float64, error) + func (v *Value) ToFloat64Slice() ([]float64, error) + func (v *Value) ToInt() (int, error) + func (v *Value) ToInt16() (int16, error) + func (v *Value) ToInt16Slice() ([]int16, error) + func (v *Value) ToInt32() (int32, error) + func (v *Value) ToInt32Slice() ([]int32, error) + func (v *Value) ToInt64() (int64, error) + func (v *Value) ToInt64Slice() ([]int64, error) + func (v *Value) ToInt8() (int8, error) + func (v *Value) ToInt8Slice() ([]int8, error) + func (v *Value) ToIntSlice() ([]int, error) + func (v *Value) ToInterfaceInterfaceMap() (map[interface{}]interface{}, error) + func (v *Value) ToString() (string, error) + func (v *Value) ToStringInterfaceMap() (map[string]interface{}, error) + func (v *Value) ToStringSlice() ([]string, error) + func (v *Value) ToStringStringMap() (map[string]string, error) + func (v *Value) ToUint() (uint, error) + func (v *Value) ToUint16() (uint16, error) + func (v *Value) ToUint16Slice() ([]uint16, error) + func (v *Value) ToUint32() (uint32, error) + func (v *Value) ToUint32Slice() ([]uint32, error) + func (v *Value) ToUint64() (uint64, error) + func (v *Value) ToUint64Slice() ([]uint64, error) + func (v *Value) ToUint8() (uint8, error) + func (v *Value) ToUint8Slice() ([]uint8, error) + func (v *Value) ToUintSlice() ([]uint, error)