Documentation ¶
Index ¶
Constants ¶
View Source
const ( // R_NUM 纯数字 R_NUM = 1 // R_UPPER 大写字母 R_UPPER = 2 // R_LOWER 小写字母 R_LOWER = 4 // R_All 数字、大小写字母 R_All = 7 )
nolint
Variables ¶
This section is empty.
Functions ¶
func Bytes ¶
Bytes 生成多种类型的任意长度的随机字符串,如果参数bytesLen为空,默认长度为6 example:Bytes(R_ALL), Bytes(R_ALL, 16), Bytes(R_NUM|R_LOWER, 16)
func Float64 ¶
Float64 生成指定范围大小随机浮点数, 支持4种传参方式:Float64(dpLength),Float64(dpLength, max),Float64(dpLength, min, max),Float64(dpLength, max, min),min<=随机数<=max
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.