Documentation ¶
Index ¶
- func Bool(i interface{}) bool
- func Byte(i interface{}) byte
- func Bytes(i interface{}) []byte
- func BytesToStruct(data []byte, to interface{}) error
- func Float32(i interface{}) float32
- func Float32ToBytes(float float32) []byte
- func Float64(i interface{}) float64
- func Float64ToBytes(float float64) []byte
- func Indirect(v reflect.Value) reflect.Value
- func Int(i interface{}) int
- func Int16(i interface{}) int16
- func Int32(i interface{}) int32
- func Int32s(i interface{}) []int32
- func Int64(i interface{}) int64
- func Int64s(i interface{}) []int64
- func Int8(i interface{}) int8
- func InterfaceToStruct(data interface{}) interface{}
- func Ints(i interface{}) []int
- func Map(i interface{}) map[string]interface{}
- func MapInt(i interface{}) map[int]interface{}
- func MapString(i interface{}) map[string]string
- func Rune(i interface{}) rune
- func Runes(i interface{}) []rune
- func String(i interface{}) string
- func Strings(i interface{}) []string
- func Struct(model interface{}, data interface{})
- func StructToBytes(data interface{}) []byte
- func Uint(i interface{}) uint
- func Uint16(i interface{}) uint16
- func Uint32(i interface{}) uint32
- func Uint32s(i interface{}) []uint32
- func Uint64(i interface{}) uint64
- func Uint64s(i interface{}) []uint64
- func Uint8(i interface{}) uint8
- func Uints(i 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 Float32ToBytes ¶
Float32ToBytes converts <i> to []byte.
func Float64ToBytes ¶
Float64ToBytes converts <i> to []byte.
func InterfaceToStruct ¶ added in v1.1.6
func InterfaceToStruct(data interface{}) interface{}
InterfaceToStruct interface conversion Struct
func Map ¶
func Map(i interface{}) map[string]interface{}
Map converts <i> to map[string]interface{}.
func MapInt ¶
func MapInt(i interface{}) map[int]interface{}
MapInt converts <i> to map[int]interface{}.
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
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.