Documentation ¶
Index ¶
- func CutStr(str string, toCount int, more string) string
- func IsMobileUA(userAgent string) bool
- func IsMobileUA2(ua string) bool
- func NumberFormat(par1 interface{}, decimals int, dot bool) string
- func NumberFormatDot(str string) string
- func RandStr(length int) string
- func RandStrFor(t string, length int) string
- func SizeFormat(size float64) string
- func StrPad(str string, length int, schar string) string
- func Substr(str string, start, length int) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsMobileUA2 ¶
根据ua判断访客是手机端还是PC端访问 手机端返回true,否则返回false,默认返回false,即PC端
func NumberFormat ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.