Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSafeRand ¶
func NewSafeRand(seed int64) safeRand
func RandomLowercaseStringWithLen ¶ added in v1.8.0
RandomLowercaseStringWithLen returns a random string of specified length containing lowercase runes.
func RandomString ¶
func RandomString() string
RandomString returns a random string with a predefined length of 12.
func RandomStringWithLen ¶
RandomStringWithLen returns a random string of specified length containing upper- and lowercase runes.
func RandomStringWithPrefix ¶
RandomStringWithPrefix returns a random string of length n + len(prefix) with the given prefix, containing upper- and lowercase runes.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.