Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Bytes ¶
Bytes generates the given amount of random bytes using crypto/rand, and panics if it fails.
func GetTokenPrefix ¶
GetTokenPrefix parses the given token generated with Token, validates the checksum and returns the prefix namespace.
func IsToken ¶
IsToken checks if the given token is a valid token generated with Token with the given namespace..
func StringBytes ¶
StringBytes generates a random string of the given length and returns it as a byte array.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.