Documentation
¶
Index ¶
Constants ¶
View Source
const ( AsciiLower = "abcdefghijklmnopqrstuvwxyz" AsciiUpper = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" AsciiDigit = "0123456789" AsciiSymbol = "!@#$%^&*()-_=+[]{}|;:',.<>/?`~" )
Variables ¶
This section is empty.
Functions ¶
func String ¶
String returns a (weak) random string of the length "n". When not passing a seqs it will generate the string based on ascii lower,upper,digits and a bunch of (ascii) symbols.
With seqs passed it will select based on the provided sequences, i.e. String(10, AsciiDigits) will produce 10 random digits.
Do not use to generate secrets.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.