Documentation ¶
Index ¶
- func Bool(any interface{}) bool
- func Byte(any interface{}) byte
- func Bytes(any interface{}) []byte
- func BytesToStruct(data []byte, to interface{}) error
- func Float32(any interface{}) float32
- func Float64(any interface{}) float64
- func Indirect(v reflect.Value) reflect.Value
- func Int(any interface{}) int
- func Int16(any interface{}) int16
- func Int32(any interface{}) int32
- func Int32s(any interface{}) []int32
- func Int64(any interface{}) int64
- func Int64s(any interface{}) []int64
- func Int8(any interface{}) int8
- func InterfaceToStruct(data interface{}) interface{}
- func Interfaces(any interface{}) []interface{}
- func Ints(any interface{}) []int
- func Map(any interface{}) map[string]interface{}
- func MapInt(any interface{}) map[int]interface{}
- func MapString(any interface{}) map[string]string
- func Rune(any interface{}) rune
- func Runes(any interface{}) []rune
- func String(any interface{}) string
- func Strings(any interface{}) []string
- func Struct(model interface{}, data interface{})
- func StructToBytes(data interface{}) []byte
- func Uint(any interface{}) uint
- func Uint16(any interface{}) uint16
- func Uint32(any interface{}) uint32
- func Uint32s(any interface{}) []uint32
- func Uint64(any interface{}) uint64
- func Uint64s(any interface{}) []uint64
- func Uint8(any interface{}) uint8
- func Uints(any interface{}) []uint
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BytesToStruct ¶
BytesToStruct Using gob encoding is generally used for "similar" two structure transmission binding or RPC communication
func Float32 ¶
func Float32(any interface{}) float32
Float32 converts `any` to float32.<将“any”转换为float32。>
func Float64 ¶
func Float64(any interface{}) float64
Float64 converts `any` to float64.<将“any”转换为float64。>
func Int32s ¶
func Int32s(any interface{}) []int32
Int32s converts `any` to []int32.<将“any”转换为[]int32。>
func Int64s ¶
func Int64s(any interface{}) []int64
Int64s converts `any` to []int64.<将“any”转换为[]int64。>
func InterfaceToStruct ¶ added in v1.1.6
func InterfaceToStruct(data interface{}) interface{}
InterfaceToStruct interface conversion Struct
func Interfaces ¶ added in v1.2.8
func Interfaces(any interface{}) []interface{}
Interfaces converts `any` to []interface{}.<将“any”转换为[]interface{}。>
func Map ¶
func Map(any interface{}) map[string]interface{}
Map converts `any` to map[string]interface{}.<将“any”转换为map[string]interface{}。>
func MapInt ¶
func MapInt(any interface{}) map[int]interface{}
MapInt converts `any` to map[int]interface{}.<将“any”map[int]interface{}。>
func String ¶
func String(any interface{}) string
String converts `any` to string.<将“any”转换为string。>
func Strings ¶
func Strings(any interface{}) []string
Strings converts `any` to []string.<将“any”转换为[]string。>
func Struct ¶
func Struct(model interface{}, data interface{})
Struct conversion binding model Bound model data Data
func StructToBytes ¶
func StructToBytes(data interface{}) []byte
StructToBytes Use gob encoding generally used for "similar" two structure transmission binding or RPC communication
func Uint16 ¶
func Uint16(any interface{}) uint16
Uint16 converts "any" to uint16.<将“any”转换为uint16。>
func Uint32 ¶
func Uint32(any interface{}) uint32
Uint32 converts "any" to uint32.<将“any”转换为uint32。>
func Uint32s ¶
func Uint32s(any interface{}) []uint32
Uint32s converts `any` to []uint32.<将“any”转换为[]uint32。>
func Uint64 ¶
func Uint64(any interface{}) uint64
Uint64 converts "any" to uint64.<将“any”转换为uint64。>
Types ¶
This section is empty.