Documentation ¶
Index ¶
- func IsArray(value interface{}) bool
- func IsArrayOrSlice(value interface{}) bool
- func IsSlice(value interface{}) bool
- func MustStructToMap(data interface{}) map[string]interface{}
- func MustToBool(value interface{}) bool
- func MustToBoolArray(value interface{}) []bool
- func MustToByte(value interface{}) byte
- func MustToByteArray(value interface{}) []byte
- func MustToComplex128(value interface{}) complex128
- func MustToComplex128Array(value interface{}) []complex128
- func MustToComplex64(value interface{}) complex64
- func MustToComplex64Array(value interface{}) []complex64
- func MustToFloat32(value interface{}) float32
- func MustToFloat32Array(value interface{}) []float32
- func MustToFloat64(value interface{}) float64
- func MustToFloat64Array(value interface{}) []float64
- func MustToInt(value interface{}) int
- func MustToInt16(value interface{}) int16
- func MustToInt16Array(value interface{}) []int16
- func MustToInt32(value interface{}) int32
- func MustToInt32Array(value interface{}) []int32
- func MustToInt64(value interface{}) int64
- func MustToInt64Array(value interface{}) []int64
- func MustToInt8(value interface{}) int8
- func MustToInt8Array(value interface{}) []int8
- func MustToIntArray(value interface{}) []int
- func MustToInterfaceArray(value interface{}) []interface{}
- func MustToMap(value interface{}) map[string]interface{}
- func MustToMapArray(value interface{}) []map[string]interface{}
- func MustToRune(value interface{}) rune
- func MustToRuneArray(value interface{}) []rune
- func MustToString(value interface{}) string
- func MustToStringArray(value interface{}) []string
- func MustToTime(value interface{}) time.Time
- func MustToTimeArray(value interface{}) []time.Time
- func MustToUint(value interface{}) uint
- func MustToUint16(value interface{}) uint16
- func MustToUint16Array(value interface{}) []uint16
- func MustToUint32(value interface{}) uint32
- func MustToUint32Array(value interface{}) []uint32
- func MustToUint64(value interface{}) uint64
- func MustToUint64Array(value interface{}) []uint64
- func MustToUint8(value interface{}) uint8
- func MustToUint8Array(value interface{}) []uint8
- func MustToUintArray(value interface{}) []uint
- func MustToUintptr(value interface{}) uintptr
- func MustToUintptrArray(value interface{}) []uintptr
- func StructToMap(data interface{}) (result map[string]interface{}, err error)
- func ToBool(value interface{}, defaultValue bool) bool
- func ToBoolArray(value interface{}, defaultValue []bool) []bool
- func ToByte(value interface{}, defaultValue byte) byte
- func ToByteArray(value interface{}, defaultValue []byte) []byte
- func ToComplex128(value interface{}, defaultValue complex128) complex128
- func ToComplex128Array(value interface{}, defaultValue []complex128) []complex128
- func ToComplex64(value interface{}, defaultValue complex64) complex64
- func ToComplex64Array(value interface{}, defaultValue []complex64) []complex64
- func ToFloat32(value interface{}, defaultValue float32) float32
- func ToFloat32Array(value interface{}, defaultValue []float32) []float32
- func ToFloat64(value interface{}, defaultValue float64) float64
- func ToFloat64Array(value interface{}, defaultValue []float64) []float64
- func ToInt(value interface{}, defaultValue int) int
- func ToInt16(value interface{}, defaultValue int16) int16
- func ToInt16Array(value interface{}, defaultValue []int16) []int16
- func ToInt32(value interface{}, defaultValue int32) int32
- func ToInt32Array(value interface{}, defaultValue []int32) []int32
- func ToInt64(value interface{}, defaultValue int64) int64
- func ToInt64Array(value interface{}, defaultValue []int64) []int64
- func ToInt8(value interface{}, defaultValue int8) int8
- func ToInt8Array(value interface{}, defaultValue []int8) []int8
- func ToIntArray(value interface{}, defaultValue []int) []int
- func ToInterfaceArray(value interface{}) ([]interface{}, bool)
- func ToMap(value interface{}, defaultValue map[string]interface{}) map[string]interface{}
- func ToMapArray(value interface{}, defaultValue []map[string]interface{}) []map[string]interface{}
- func ToRune(value interface{}, defaultValue rune) rune
- func ToRuneArray(value interface{}, defaultValue []rune) []rune
- func ToString(value interface{}, defaultValue string) string
- func ToStringArray(value interface{}, defaultValue []string) []string
- func ToTime(value interface{}, defaultValue time.Time) time.Time
- func ToTimeArray(value interface{}, defaultValue []time.Time) []time.Time
- func ToUint(value interface{}, defaultValue uint) uint
- func ToUint16(value interface{}, defaultValue uint16) uint16
- func ToUint16Array(value interface{}, defaultValue []uint16) []uint16
- func ToUint32(value interface{}, defaultValue uint32) uint32
- func ToUint32Array(value interface{}, defaultValue []uint32) []uint32
- func ToUint64(value interface{}, defaultValue uint64) uint64
- func ToUint64Array(value interface{}, defaultValue []uint64) []uint64
- func ToUint8(value interface{}, defaultValue uint8) uint8
- func ToUint8Array(value interface{}, defaultValue []uint8) []uint8
- func ToUintArray(value interface{}, defaultValue []uint) []uint
- func ToUintptr(value interface{}, defaultValue uintptr) uintptr
- func ToUintptrArray(value interface{}, defaultValue []uintptr) []uintptr
- type AnyType
- func (a AnyType) Get(key interface{}) (AnyType, bool)
- func (a AnyType) MustGet(key interface{}) AnyType
- func (a AnyType) MustToBool() bool
- func (a AnyType) MustToByte() byte
- func (a AnyType) MustToComplex128() complex128
- func (a AnyType) MustToComplex64() complex64
- func (a AnyType) MustToFloat32() float32
- func (a AnyType) MustToFloat64() float64
- func (a AnyType) MustToInt() int
- func (a AnyType) MustToInt16() int16
- func (a AnyType) MustToInt32() int32
- func (a AnyType) MustToInt64() int64
- func (a AnyType) MustToInt8() int8
- func (a AnyType) MustToMap() map[string]interface{}
- func (a AnyType) MustToRune() rune
- func (a AnyType) MustToString() string
- func (a AnyType) MustToTime() time.Time
- func (a AnyType) MustToUint() uint
- func (a AnyType) MustToUint16() uint16
- func (a AnyType) MustToUint32() uint32
- func (a AnyType) MustToUint64() uint64
- func (a AnyType) MustToUint8() uint8
- func (a AnyType) MustToUintptr() uintptr
- func (a AnyType) ToBool(defaultValue bool) bool
- func (a AnyType) ToByte(defaultValue byte) byte
- func (a AnyType) ToComplex128(defaultValue complex128) complex128
- func (a AnyType) ToComplex64(defaultValue complex64) complex64
- func (a AnyType) ToFloat32(defaultValue float32) float32
- func (a AnyType) ToFloat64(defaultValue float64) float64
- func (a AnyType) ToInt(defaultValue int) int
- func (a AnyType) ToInt16(defaultValue int16) int16
- func (a AnyType) ToInt32(defaultValue int32) int32
- func (a AnyType) ToInt64(defaultValue int64) int64
- func (a AnyType) ToInt8(defaultValue int8) int8
- func (a AnyType) ToMap(defaultValue map[string]interface{}) map[string]interface{}
- func (a AnyType) ToRune(defaultValue rune) rune
- func (a AnyType) ToString(defaultValue string) string
- func (a AnyType) ToTime(defaultValue time.Time) time.Time
- func (a AnyType) ToUint(defaultValue uint) uint
- func (a AnyType) ToUint16(defaultValue uint16) uint16
- func (a AnyType) ToUint32(defaultValue uint32) uint32
- func (a AnyType) ToUint64(defaultValue uint64) uint64
- func (a AnyType) ToUint8(defaultValue uint8) uint8
- func (a AnyType) ToUintptr(defaultValue uintptr) uintptr
- func (a AnyType) Value() interface{}
- type H
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsArrayOrSlice ¶
func IsArrayOrSlice(value interface{}) bool
func MustStructToMap ¶
func MustStructToMap(data interface{}) map[string]interface{}
func MustToBool ¶
func MustToBool(value interface{}) bool
func MustToBoolArray ¶
func MustToBoolArray(value interface{}) []bool
func MustToByte ¶
func MustToByte(value interface{}) byte
func MustToByteArray ¶
func MustToByteArray(value interface{}) []byte
func MustToComplex128 ¶
func MustToComplex128(value interface{}) complex128
func MustToComplex128Array ¶
func MustToComplex128Array(value interface{}) []complex128
func MustToComplex64 ¶
func MustToComplex64(value interface{}) complex64
func MustToComplex64Array ¶
func MustToComplex64Array(value interface{}) []complex64
func MustToFloat32 ¶
func MustToFloat32(value interface{}) float32
func MustToFloat32Array ¶
func MustToFloat32Array(value interface{}) []float32
func MustToFloat64 ¶
func MustToFloat64(value interface{}) float64
func MustToFloat64Array ¶
func MustToFloat64Array(value interface{}) []float64
func MustToInt16 ¶
func MustToInt16(value interface{}) int16
func MustToInt16Array ¶
func MustToInt16Array(value interface{}) []int16
func MustToInt32 ¶
func MustToInt32(value interface{}) int32
func MustToInt32Array ¶
func MustToInt32Array(value interface{}) []int32
func MustToInt64 ¶
func MustToInt64(value interface{}) int64
func MustToInt64Array ¶
func MustToInt64Array(value interface{}) []int64
func MustToInt8 ¶
func MustToInt8(value interface{}) int8
func MustToInt8Array ¶
func MustToInt8Array(value interface{}) []int8
func MustToIntArray ¶
func MustToIntArray(value interface{}) []int
func MustToInterfaceArray ¶
func MustToInterfaceArray(value interface{}) []interface{}
func MustToMapArray ¶
func MustToMapArray(value interface{}) []map[string]interface{}
func MustToRune ¶
func MustToRune(value interface{}) rune
func MustToRuneArray ¶
func MustToRuneArray(value interface{}) []rune
func MustToString ¶
func MustToString(value interface{}) string
func MustToStringArray ¶
func MustToStringArray(value interface{}) []string
func MustToTime ¶
func MustToTimeArray ¶
func MustToUint ¶
func MustToUint(value interface{}) uint
func MustToUint16 ¶
func MustToUint16(value interface{}) uint16
func MustToUint16Array ¶
func MustToUint16Array(value interface{}) []uint16
func MustToUint32 ¶
func MustToUint32(value interface{}) uint32
func MustToUint32Array ¶
func MustToUint32Array(value interface{}) []uint32
func MustToUint64 ¶
func MustToUint64(value interface{}) uint64
func MustToUint64Array ¶
func MustToUint64Array(value interface{}) []uint64
func MustToUint8 ¶
func MustToUint8(value interface{}) uint8
func MustToUint8Array ¶
func MustToUint8Array(value interface{}) []uint8
func MustToUintArray ¶
func MustToUintArray(value interface{}) []uint
func MustToUintptr ¶
func MustToUintptr(value interface{}) uintptr
func MustToUintptrArray ¶
func MustToUintptrArray(value interface{}) []uintptr
func StructToMap ¶
func ToBoolArray ¶
func ToByteArray ¶
func ToComplex128 ¶
func ToComplex128(value interface{}, defaultValue complex128) complex128
func ToComplex128Array ¶
func ToComplex128Array(value interface{}, defaultValue []complex128) []complex128
func ToComplex64 ¶
func ToComplex64Array ¶
func ToFloat32Array ¶
func ToFloat64Array ¶
func ToInt16Array ¶
func ToInt32Array ¶
func ToInt64Array ¶
func ToInt8Array ¶
func ToIntArray ¶
func ToInterfaceArray ¶
func ToInterfaceArray(value interface{}) ([]interface{}, bool)
func ToMapArray ¶
func ToRuneArray ¶
func ToStringArray ¶
func ToUint16Array ¶
func ToUint32Array ¶
func ToUint64Array ¶
func ToUint8Array ¶
func ToUintArray ¶
func ToUintptrArray ¶
Types ¶
type AnyType ¶ added in v1.1.2
type AnyType struct {
// contains filtered or unexported fields
}
func (AnyType) MustToBool ¶ added in v1.1.2
func (AnyType) MustToByte ¶ added in v1.1.2
func (AnyType) MustToComplex128 ¶ added in v1.1.2
func (a AnyType) MustToComplex128() complex128
func (AnyType) MustToComplex64 ¶ added in v1.1.2
func (AnyType) MustToFloat32 ¶ added in v1.1.2
func (AnyType) MustToFloat64 ¶ added in v1.1.2
func (AnyType) MustToInt16 ¶ added in v1.1.2
func (AnyType) MustToInt32 ¶ added in v1.1.2
func (AnyType) MustToInt64 ¶ added in v1.1.2
func (AnyType) MustToInt8 ¶ added in v1.1.2
func (AnyType) MustToRune ¶ added in v1.1.2
func (AnyType) MustToString ¶ added in v1.1.2
func (AnyType) MustToTime ¶ added in v1.1.2
func (AnyType) MustToUint ¶ added in v1.1.2
func (AnyType) MustToUint16 ¶ added in v1.1.2
func (AnyType) MustToUint32 ¶ added in v1.1.2
func (AnyType) MustToUint64 ¶ added in v1.1.2
func (AnyType) MustToUint8 ¶ added in v1.1.2
func (AnyType) MustToUintptr ¶ added in v1.1.2
func (AnyType) ToComplex128 ¶ added in v1.1.2
func (a AnyType) ToComplex128(defaultValue complex128) complex128
func (AnyType) ToComplex64 ¶ added in v1.1.2
Click to show internal directories.
Click to hide internal directories.