rand

package
v0.0.0-...-206da09 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// GetRandE 标示
	R_LOWER  = 0x1 // 小写
	R_UPPER  = 0x2 // 大写
	R_NUMBER = 0x4 // 数字
	R_SYMBOL = 0x8 // 符号

)

Variables

This section is empty.

Functions

func GetRand

func GetRand(n int, num, big, small bool) []byte

GetRand 获取n位随机字符 是否允许数字 是否允许大写字母 是否允许小写字母

func GetRandCN

func GetRandCN(n int) []byte

GetRandCN 获取随机中文(UTF-8)

func GetRandE

func GetRandE(n int, flag int) []byte

GetRandE GetRandE

Types

This section is empty.

Jump to

Keyboard shortcuts

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