Documentation ¶
Index ¶
Constants ¶
View Source
const AllRunes = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
AllRunes defines the possible characters which will be used by RandomString to generate a string.
View Source
const StringLength = 10
StringLength defines the length of the string generated by RandomString.
Variables ¶
This section is empty.
Functions ¶
func RandomString ¶
func RandomString() string
RandomString generates a random string with a specific size, defined by StringLength. The possible characters are defined by AllCharacters (A-Z, a-z, 0-9). This function uses the default random source of "math/rand".
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.