random

package
v0.0.0-...-3f5828c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 8, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Random random = random{}

Functions

func RandString

func RandString(length uint8, mask uint8) (str string)

获取随机字符串 可通过掩码选中字符串, mask 7 => 1,2,4, mask 3 => 1,2, mask 5 => 1, 4

func Uniqid

func Uniqid() string

根据 当前时间+服务IP+当前进程ID 计算一个唯一 id

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL