Documentation ¶
Index ¶
- func GenHash(src string) string
- func GenRandomInt(start int, end int) int
- func GenRandomInt64(start int64, end int64) int64
- func GenRandomInt64List(start int64, end int64, count int) []int64
- func GenRandomIntList(start int, end int, count int) []int
- func GenUUID() string
- func GenUniqueId() (snowflake.ID, error)
- func GetRandomString(l int) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenRandomInt64 ¶
生成范围在[start,end), 类型为int64的随机数
func GenRandomInt64List ¶
生成范围在[start,end), 类型为int64的n个不重复随机数
func GenRandomIntList ¶
生成范围在[start,end), 类型为int的n个不重复随机数
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.