random

package
v0.1.12 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Gen20BitDigit

func Gen20BitDigit() string

此方法不要用, 冲突率非常高, 参看 Benchmark test

func Gen20BitUUID

func Gen20BitUUID() string

20bit: 推荐: 安全, 无冲突(详见 Benchmark test)

func Gen20BitUUIDLower

func Gen20BitUUIDLower() string

默认全小写:

func Gen32BitUUID4

func Gen32BitUUID4() string

32bit: 推荐: 安全, 无冲突(详见 Benchmark test)

func Gen36BitUUID4

func Gen36BitUUID4() string

36bit:

func GenDigit

func GenDigit(length int32) string

for verify code <= 6

func GenUUID4

func GenUUID4() uuid.UUID

Random (Version 4) UUID.

func SnowFlakeID

func SnowFlakeID() uint64

18 bit 纯数字 ID: 有序+递增+唯一

Types

This section is empty.

Jump to

Keyboard shortcuts

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