Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetRandomString ¶
*
- 生成随机字符串
- index:取随机序列的前index个
- 0-9:10
- 0-9a-z:10+24
- 0-9a-zA-Z:10+24+24
- length:需要生成随机字符串的长度
func GetURLParams ¶
func GetURLParams(values ...interface{}) string
*
- 有序(或者无序)地从一个map中按照index的顺序构造URL中的params
- 加上有序的目的是为了防止有些环境下需要params根据key的ASC大小排序后进行签名加密
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.