Documentation ¶
Overview ¶
数据转换
Index ¶
- Variables
- func BoolElem() reflect.Value
- func BoolSliceElem() reflect.Value
- func DeepCopy(dst, src interface{}) error
- func Elem(v reflect.Type) reflect.Value
- func Float32Elem() reflect.Value
- func Float32SliceElem() reflect.Value
- func Float64Elem() reflect.Value
- func Float64SliceElem() reflect.Value
- func Int32Elem() reflect.Value
- func Int32MapElem(v reflect.Type) reflect.Value
- func Int32SliceElem() reflect.Value
- func Int64Elem() reflect.Value
- func Int64MapElem(v reflect.Type) reflect.Value
- func Int64SliceElem() reflect.Value
- func IntElem() reflect.Value
- func IntMapElem(v reflect.Type) reflect.Value
- func IntSliceElem() reflect.Value
- func MapElem(k, v reflect.Type) reflect.Value
- func ParseBool(v interface{}) bool
- func ParseFloat32(v interface{}) float32
- func ParseFloat64(v interface{}) float64
- func ParseInt(v interface{}) int
- func ParseInt32(v interface{}) int32
- func ParseInt64(v interface{}) int64
- func ParseSlice(v interface{}) []interface{}
- func ParseStr(v interface{}) string
- func ParseStrSlice(v []interface{}) []string
- func ParseUint(v interface{}) uint
- func ParseUint32(v interface{}) uint32
- func ParseUint64(v interface{}) uint64
- func Ptr(v reflect.Type) reflect.Value
- func SliceElem(v reflect.Type) reflect.Value
- func SliceTwoElem(v reflect.Type) reflect.Value
- func StrElem() reflect.Value
- func StrMapElem(v reflect.Type) reflect.Value
- func StrSliceElem() reflect.Value
- func StructToDict(data interface{}) map[string]interface{}
- func ToDict(data interface{}) map[string]interface{}
- func ToJson(data interface{}) []byte
- func ToStruct(data interface{}, obj interface{}) error
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func BoolSliceElem ¶
func Float32Elem ¶
func Float32SliceElem ¶
func Float64Elem ¶
func Float64SliceElem ¶
func Int32SliceElem ¶
func Int64SliceElem ¶
func IntSliceElem ¶
func ParseFloat32 ¶
func ParseFloat32(v interface{}) float32
ParseFloat32 convert interface to float32.
func ParseFloat64 ¶
func ParseFloat64(v interface{}) float64
ParseFloat64 convert interface to float64.
func ParseSlice ¶
func ParseSlice(v interface{}) []interface{}
func ParseStrSlice ¶
func ParseStrSlice(v []interface{}) []string
ParseStrSlice convert []interface to []string
func SliceTwoElem ¶
反射创建切片 (以 .Addr.Interface() 获取指针数据)
func StrSliceElem ¶
func StructToDict ¶
func StructToDict(data interface{}) map[string]interface{}
StructToDict 结构体转字典 (不支持嵌套)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.