Documentation
¶
Overview ¶
Package random is a helper for generating random alphanumeric strings.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( PossibleNumbers = "0123456789" PossibleLowerCase = "abcdefghijklmnopqrstuvwxyz" PossibleUpperCase = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" PossibleSpecialCharacter = " !\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~" PossibleAlphaNum = PossibleNumbers + PossibleLowerCase + PossibleUpperCase PossibleAlphaNumLower = PossibleNumbers + PossibleLowerCase PossibleAlphaNumUpper = PossibleNumbers + PossibleUpperCase )
Functions ¶
func AlphaNum ¶
AlphaNum returns a random alphanumeric string of the given length. The returned string can contain both uppercase and lowercase letters.
func AlphaNumLower ¶
AlphaNumLower returns a random alphanumeric string of the given length. The returned string can contain lowercase letters, but not uppercase.
func AlphaNumUpper ¶
AlphaNumUpper returns a random alphanumeric string of the given length. The returned string can contain uppercase letters, but not lowercase.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.