uuid

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2022 License: GPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateValidateCode

func CreateValidateCode(width int) string

随机数生成,带有位数限制

func GenerateRangeNum

func GenerateRangeNum(min, max int) int

生成一个在区间范围的随机数

func GetRandomSpecialString

func GetRandomSpecialString(lens int) string

生成随机字符串(特殊字符)

func GetRandomString

func GetRandomString(lens int) string

生成随机字符串(带有位数)

func GetSnowflakeId

func GetSnowflakeId() int64

func GetSnowflakeIdProcess

func GetSnowflakeIdProcess() int64

生成雪花ID

func MustString

func MustString() string

MustString Create uuid

Types

type UUID

type UUID = uuid.UUID

UUID Define alias

func MustUUID

func MustUUID() UUID

MustUUID Create uuid(Throw panic if something goes wrong)

func NewUUID

func NewUUID() (UUID, error)

NewUUID Create uuid

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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