Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateRandomString ¶
GenerateRandomString generates a cryptographically random, alphanumeric string of length n.
func SanitizeURI ¶
SanitizeURI takes a URL or URI, removes the domain from it, returns only the URI. This is used for cleaning "next" redirect URLs/URIs to prevent open redirects.
func ValidateEmail ¶
ValidateEmail validates whether the given string is a correctly formed e-mail address.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.