Documentation ¶
Index ¶
- Constants
- func BinaryToDecimal(bit string) (num int)
- func BytesToString(b []byte) (s string)
- func ConvertToString(v interface{}) (str 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 RandomNumber(l int) string
- func RandomPureString(l int) string
- func RandomString(l int) 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)
- type File
Constants ¶
View Source
const ( TimeLayout = "2006-01-02 15:04:05" TimeLayout_2 = "20060102150405" DateLayout = "2006-01-02" NULL = "" )
Variables ¶
This section is empty.
Functions ¶
func BytesToString ¶
BytesToString 0 拷贝转换 slice byte 为 string
func ConvertToString ¶
func ConvertToString(v interface{}) (str string)
Types ¶
Click to show internal directories.
Click to hide internal directories.