Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DelExtraSpace ¶
DelExtraSpace 压缩字符串,删除字符串中的多余空格,有多个空格时,仅保留一个空格,可用于将已格式化的json字符串压缩
func RandString ¶
RandString 随机生成len位数的随机数,比如len=6则生成6位随机数, 需要配合init()方法中的rand.Seed(time.Now().Unix())使用
func StrPreAndSufIsContainFixStr ¶
StrPreAndSufIsContainFixStr 判断传入的字符串str首或尾是否包含fixStr字符串,如果包含返回true
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.