Documentation ¶
Index ¶
- func ArrayToString(array []interface{}) string
- func Bool2Str(s bool) string
- func BytesGB18030Decode(byteArray []byte) []byte
- func BytesGB18030Encode(byteArray []byte) []byte
- func BytesGBKDecode(byteArray []byte) []byte
- func BytesGBKEncode(byteArray []byte) []byte
- func ConvertArray2InterfaceArray(slice interface{}) ([]interface{}, bool)
- func Float642Int64(num float64, retain int) int64
- func Int2Str(s int) string
- func Int642Float64(num int64, retain int) float64
- func Int642str(s int64) string
- func JSONStringify(in interface{}) (success bool, retStr string)
- func Str2Int(s string) int
- func Str2Int64(s string) int64
- func Str2Uint(s string) uint
- func Str2Uint64(s string) uint64
- func StrGB18030Decode(str string) string
- func StrGB18030Encode(str string) string
- func StrGBKDecode(str string) string
- func StrGBKEncode(str string) string
- func StructToMap(obj interface{}) map[string]interface{}
- func Uint2Decimal(in uint) (res decimal.Decimal)
- func Uint2Str(s uint) string
- func Uint2str(in uint) string
- func Uint642Decimal(in uint64) (res decimal.Decimal)
- func Uint642Str(s uint64) string
- func Uint642str(in uint64) string
- func Uint82str(in uint8) string
- func UnicodeIndex(str, substr string) int
- func UnwrapToInt64(num int64, retain int) int64
- func WrapToFloat64(num float64, retain int) float64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ArrayToString ¶
func ArrayToString(array []interface{}) string
func BytesGB18030Decode ¶
把 []byte 类型的数据从 GB18030 编码转为 URF-8
func BytesGB18030Encode ¶
GB18030 []byte 把 []byte 类型的数据从 URF-8 编码转为 GB18030
func BytesGBKEncode ¶
GBK []byte 把 []byte 类型的数据从 URF-8 编码转为 GBK
func ConvertArray2InterfaceArray ¶ added in v0.2.10
func ConvertArray2InterfaceArray(slice interface{}) ([]interface{}, bool)
func JSONStringify ¶ added in v0.4.0
数据序列化
func StrGB18030Encode ¶
GB18030 字符串 把 string 类型的数据从 GB18030 编码转为 URF-8
func Uint2Decimal ¶ added in v0.2.4
func Uint642Decimal ¶ added in v0.2.5
func Uint642str ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.