utilsRandom

package
v0.0.0-...-7ec6a99 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KeyTableAlpha   = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
	KeyTableNumeric = "0123456789"
	KeyTableAll     = KeyTableNumeric + KeyTableAlpha
)

Variables

This section is empty.

Functions

func GenUuid

func GenUuid(ver int) string

生成UUID

func RandAlpha

func RandAlpha(length int) string

RandAlpha 生成随机字符串

func RandDefault

func RandDefault(length int) string

RandDefault 生成随机字符串

func RandNumeric

func RandNumeric(length int) string

RandomNumber 生成随机数字

Types

This section is empty.

Jump to

Keyboard shortcuts

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