grand

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CHARS = []string{"a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z",
	"A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z",
	"1", "2", "3", "4", "5", "6", "7", "8", "9", "0"}

Functions

func RandAllString

func RandAllString(lenNum int) string

RandAllString 生成随机字符串([a~zA~Z0~9])

lenNum 长度

func RandNumString

func RandNumString(lenNum int) string

RandNumString 生成随机数字字符串([0~9])

lenNum 长度

func RandString

func RandString(lenNum int) string

RandString 生成随机字符串(a~zA~Z])

lenNum 长度

Types

This section is empty.

Jump to

Keyboard shortcuts

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