package
0.0.0-20230401153839-d62a2a98311c
Repository: https://github.com/gjing1st/gin-admin-frame.git
Documentation: pkg.go.dev
# Functions
B retrieves and returns random bytes of given length `n`.
D returns a random time.Duration between min and max: [min, max].
Digits returns a random string which contains only digits, and its length is `n`.
No description provided by the author
GenerateUUID20 @description: 20位uuid @param: @author: GJing @email: [email protected] @date: 2022/4/6 11:39 @success:.
GenerateUUID32 @description: 生成uid 32位 @param: @author: GJing @email: [email protected] @date: 2022/4/6 11:37 @success:.
No description provided by the author
GoogleUUID20 @description: 20位uuid @param: @author: GJing @email: [email protected] @date: 2022/4/6 13:11 @success:.
GoogleUUID32 @description: google/uuid @param: @author: GJing @email: [email protected] @date: 2022/4/6 13:08 @success:.
Intn returns a int number which is between 0 and max: [0, max).
Letters returns a random string which contains only letters, and its length is `n`.
LS 返回小写字母.
Meet randomly calculate whether the given probability `num`/`total` is met.
MeetProb randomly calculate whether the given probability is met.
N returns a random int between min and max: [min, max].
Perm returns, as a slice of n int numbers, a pseudo-random permutation of the integers [0,n).
S returns a random string which contains digits and letters, and its length is `n`.
Str randomly picks and returns `n` count of chars from given string `s`.
Symbols returns a random string which contains only symbols, and its length is `n`.