Documentation ¶
Index ¶
- func Base64Decode(str string) string
- func Base64Encode(str string) string
- func FormatPrice(money float64, length ...int) float64
- func Gbk2Utf8(content []byte) []byte
- func GetRand(min int, max int) int
- func GetShuffle(length int) string
- func GetUniqueStr() string
- func HasErr(err error, val string) bool
- func JsonEncode(str interface{}) string
- func Md5(str string) string
- func ParseFloat(val string) float64
- func ParseInt(val string) int
- func ParseInt32(val string) int32
- func ParseInt64(val string) int64
- func ParseStringByFloat64(val float64, len int) string
- func ParseStringByInt(val int) string
- func ParseStringByInt64(val int64) string
- func PrintJson(val interface{})
- func StringToNumber(val string) int
- func UpperToDownLine(val string, format byte) string
- func UrlDecode(str string) string
- func UrlEncode(str string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatPrice ¶
格式化金额信息 @param money 要格式化的金额
func ParseStringByFloat64 ¶
将一个浮点型转换成字符串 @param val 要转换的浮点型 @param len 保留浮点数长度
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.