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 Int162Str(s int16) string
- func Int2Str(s int) string
- func Int322Str(s int32) string
- func Int642Float64(num int64, retain int) float64
- func Int642Str(s int64) string
- func Int82Str(s int8) string
- func JsonStringify(in interface{}) (success bool, retStr string)
- func Str2Float32(s string) float32
- func Str2Float64(s string) float64
- func Str2Int(s string) int
- func Str2Int16(s string) int16
- func Str2Int32(s string) int32
- func Str2Int64(s string) int64
- func Str2Int8(s string) int8
- func Str2Uint(s string) uint
- func Str2Uint16(s string) uint16
- func Str2Uint32(s string) uint32
- func Str2Uint64(s string) uint64
- func Str2Uint8(s string) uint8
- 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 Uint162Str(in uint16) string
- func Uint2Decimal(in uint) (res decimal.Decimal)
- func Uint2Str(s uint) string
- func Uint322Str(in uint32) string
- func Uint642Decimal(in uint64) (res decimal.Decimal)
- 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 ¶ added in v0.8.1
Convert the encoding of the []byte from GB18030 to UTF-8
func BytesGb18030Encode ¶ added in v0.8.1
GB18030 []byte Convert the encoding of the []byte from UTF-8 to GB18030
func BytesGbkDecode ¶ added in v0.8.1
Convert the encoding of the []byte from GBK to UTF-8
func BytesGbkEncode ¶ added in v0.8.1
GBK []byte Convert the encoding of the []byte from UTF-8 to GBK
func ConvertArray2InterfaceArray ¶
func ConvertArray2InterfaceArray(slice interface{}) ([]interface{}, bool)
func JsonStringify ¶ added in v0.8.1
func Str2Uint16 ¶ added in v0.7.3
func Str2Uint32 ¶ added in v0.7.3
func Str2Uint64 ¶
func StrGb18030Decode ¶ added in v0.8.1
Convert the encoding of the string from GB18030 to UTF-8
func StrGb18030Encode ¶ added in v0.8.1
GB18030 string Convert the encoding of the string from GB18030 to UTF-8
func StrGbkDecode ¶ added in v0.8.1
Convert the encoding of the string from GBK to UTF-8
func StrGbkEncode ¶ added in v0.8.1
GBK string Convert the encoding of the string from UTF-8 to GBK
func StructToMap ¶
func StructToMap(obj interface{}) map[string]interface{}
The struct filed need tag "mapstructure"
func Uint162Str ¶ added in v0.7.3
func Uint2Decimal ¶
func Uint322Str ¶ added in v0.7.3
func Uint642Decimal ¶
func Uint642Str ¶
func UnwrapToInt64 ¶
func WrapToFloat64 ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.