Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenSafeUniqueSlug ¶
GenSafeUniqueSlug generatees a reasonably unique random slug from the given original slug. It's "safe" because it uses 0-9 b-z excluding vowels.
func Generate62RandomString ¶ added in v1.4.0
Generate62RandomString creates a random string with the given length consisting of characters in [A-Za-z0-9].
func GenerateFriendlyRandomString ¶ added in v1.4.0
GenerateFriendlyRandomString creates a random string of characters with the given length consisting of characters in [a-z0-9].
func GenerateRandomString ¶ added in v1.3.0
GenerateRandomString creates a random string of characters of the given length from the given dictionary of possible characters.
This example generates a hexadecimal string 6 characters long:
GenerateRandomString("0123456789abcdef", 6)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.