Documentation ¶
Index ¶
- func AnyToBytes(v any) (bs []byte)
- func AnyToString(v any) (str string)
- func BinaryToDecimal(bit string) (num int)
- func BytesToString(b []byte) (s string)
- func Float32ToString(floatNum float32, prec ...int) (floatStr string)
- func Float64ToString(floatNum float64, prec ...int) (floatStr string)
- func Int2String(intNum int) (intStr string)
- func Int642String(intNum int64) (int64Str string)
- func Int64ToString(intNum int64) (int64Str string)
- func IntToString(intNum int) (intStr string)
- func String2Float32(floatStr string) (floatNum float32)
- func String2Float64(floatStr string) (floatNum float64)
- func String2Int(intStr string) (intNum int)
- func String2Int64(intStr string) (int64Num int64)
- func StringToFloat32(floatStr string) (floatNum float32)
- func StringToFloat64(floatStr string) (floatNum float64)
- func StringToInt(intStr string) (intNum int)
- func StringToInt64(intStr string) (int64Num int64)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AnyToBytes ¶ added in v0.0.3
func AnyToString ¶ added in v0.0.3
func BytesToString ¶ added in v0.0.3
BytesToString 0 拷贝转换 slice byte 为 string
func Float32ToString ¶
Float32ToString Float32转字符串 floatNum:float32数字 prec:精度位数(不传则默认float数字精度)
func Float64ToString ¶
Float64ToString Float64转字符串 floatNum:float64数字 prec:精度位数(不传则默认float数字精度)
func Int64ToString ¶ added in v0.0.3
Int64ToString Int64转字符串 intNum:数字字符串
func IntToString ¶ added in v0.0.3
IntToString Int转字符串 intNum:数字字符串
func String2Float32 ¶
Deprecated 推荐使用 StringToFloat32
func String2Float64 ¶
Deprecated 推荐使用 StringToFloat64
func StringToFloat32 ¶ added in v0.0.3
StringToFloat32 字符串转Float32 floatStr:小数点数字的字符串
func StringToFloat64 ¶ added in v0.0.3
StringToFloat64 字符串转Float64 floatStr:小数点数字的字符串
func StringToInt ¶ added in v0.0.3
StringToInt 字符串转Int intStr:数字的字符串
func StringToInt64 ¶ added in v0.0.3
StringToInt64 字符串转Int64 intStr:数字的字符串
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.