Documentation ¶
Index ¶
Constants ¶
View Source
const (
// FriendlyIdLen is the length of any saved posts's filename.
FriendlyIdLen = 13
)
Variables ¶
This section is empty.
Functions ¶
func Generate62RandomString ¶
Generate62RandomString creates a random string with the given length consisting of characters in [A-Za-z0-9].
func GenerateFriendlyRandomString ¶
GenerateFriendlyRandomString creates a random string of characters with the given length consististing of characters in [a-z0-9].
func GenerateRandomString ¶
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.