random

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2018 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	PossibleNumbers   = "0123456789"
	PossibleLowerCase = "abcdefghijklmnopqrstuvwxyz"
	PossibleUpperCase = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"

	PossibleAlphaNum      = PossibleNumbers + PossibleLowerCase + PossibleUpperCase
	PossibleAlphaNumLower = PossibleNumbers + PossibleLowerCase
	PossibleAlphaNumUpper = PossibleNumbers + PossibleUpperCase
)

Functions

func AlphaNum

func AlphaNum(length int) string

func AlphaNumLower

func AlphaNumLower(length int) string

func AlphaNumUpper

func AlphaNumUpper(length int) string

func Numbers

func Numbers(length int) string

func String

func String(chooseFrom string, length int) (randomString string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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