Documentation ¶
Index ¶
- func GenerateLowerString(length int) string
- func GenerateLowerStringV2(r *rand.Rand, length int) string
- func GenerateMixString(length int) string
- func GenerateMixStringV2(r *rand.Rand, length int) string
- func GenerateNumString(length int) string
- func GenerateNumStringV2(r *rand.Rand, length int) string
- func GenerateString(length int) string
- func GenerateStringV2(r *rand.Rand, length int) string
- func GenerateUpperString(length int) string
- func GenerateUpperStringV2(r *rand.Rand, length int) string
- func Random() *rand.Rand
- func Source() rand.Source
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateLowerString ¶
GenerateLowerString *
- 返回一个定长的随机纯小写字母字符串(只包含大小写字母) *
- @param length
- 随机字符串长度
- @return 随机字符串
func GenerateLowerStringV2 ¶ added in v1.22.10
func GenerateMixString ¶
GenerateMixString *
- 返回一个定长的随机纯字母字符串(只包含大小写字母) *
- @param length
- 随机字符串长度
- @return 随机字符串
func GenerateMixStringV2 ¶ added in v1.22.10
func GenerateNumString ¶
GenerateNumString *
- 返回一个定长的随机数字字符串(只包含数字) *
- @param length
- 随机字符串长度
- @return 随机字符串
func GenerateNumStringV2 ¶ added in v1.22.10
func GenerateString ¶
GenerateString *
- 返回一个定长的随机字符串(只包含大小写字母、数字) *
- @param length
- 随机字符串长度
- @return 随机字符串
func GenerateUpperString ¶
GenerateUpperString *
- 返回一个定长的随机纯大写字母字符串(只包含大小写字母) *
- @param length
- 随机字符串长度
- @return 随机字符串 *
func GenerateUpperStringV2 ¶ added in v1.22.10
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.