Documentation ¶
Index ¶
- func Empty(arg interface{}) bool
- func Explode(data string, sep string) []interface{}
- func ExplodeFloat64(data string, sep string) []float64
- func ExplodeInt(data string, sep string) []int
- func ExplodeInt64(data string, sep string) []int64
- func Float64Slice2IntSlice(slice []interface{}) []int
- func Float64ToStr(number float64) string
- func GetType(params interface{}) string
- func If(conditions bool, trueVal, falseVal interface{}) interface{}
- func Implode(data interface{}, glue string) string
- func Int2Str(number int) string
- func Int64Slice2IntSlice(int64_slice []int64) []int
- func Int64ToStr(number int64) string
- func InterfaceSlice2MapSlice(inter []interface{}) []map[string]interface{}
- func IsNil(i interface{}) bool
- func IsType(needle interface{}, type_name string) bool
- func JsonDecode(json_str string) map[string]interface{}
- func JsonDecodeInt64Slice(json_str string) []int64
- func JsonDecodeWithStruct(json_str string, istruct interface{}) interface{}
- func JsonEncode(data interface{}) (string, error)
- func Map2InterfaceSlice(data map[string]interface{}) []interface{}
- func Str2Float64(str string) float64
- func Str2Int(str string) int
- func Str2Int64(str string) int64
- func Str2Int8(str string) int8
- func StrSlice2InterfaceSlice(data []string) []interface{}
- func ToString(data interface{}) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Empty ¶
func Empty(arg interface{}) bool
*
- @func: Empty 判断目标是否为空值或0
- @author Wiidz
- @date 2019-11-16
func Float64Slice2IntSlice ¶
func Float64Slice2IntSlice(slice []interface{}) []int
*
- @func: Float64SliceToInt float64 slice转换成 int slice
- @author Wiidz
- @date 2019-11-16
func GetType ¶
func GetType(params interface{}) string
*
- @func: GetType 获取目标的数据类型
- @author Wiidz
- @date 2019-11-16
func If ¶
func If(conditions bool, trueVal, falseVal interface{}) interface{}
*
- @func: If 三元运算符
- @author Wiidz
- @date 2019-11-16
func Int64Slice2IntSlice ¶
func InterfaceSlice2MapSlice ¶
func InterfaceSlice2MapSlice(inter []interface{}) []map[string]interface{}
*
- @func: InterfaceSlice2MapSlice interface slice 转换 map slice
- @author Wiidz
- @date 2019-11-16
func JsonDecodeWithStruct ¶
func JsonDecodeWithStruct(json_str string, istruct interface{}) interface{}
*
- @func: JsonDecode 解码json
- @author Wiidz
- @date 2019-11-16
func Map2InterfaceSlice ¶
func Map2InterfaceSlice(data map[string]interface{}) []interface{}
*
- @func: Map2InterfaceSlice 将map转换成interface slice
- @author Wiidz
- @date 2019-11-16
func StrSlice2InterfaceSlice ¶
func StrSlice2InterfaceSlice(data []string) []interface{}
*
- @func: StrSlice2InterfaceSlice 字符串slice转interface slice
- @author Wiidz
- @date 2019-11-16
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.