Documentation
¶
Index ¶
Constants ¶
View Source
const MaxUsernameLength = 36
MaxUsernameLength is the maximum number of ASCII characters in a writable username.
Variables ¶
View Source
var (
UIDMatcher = regexp.MustCompile(`^[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,34}[a-zA-Z0-9])?$`)
)
Functions ¶
func IsUsernameCharacter ¶
IsUsernameCharacter reports whether an ASCII byte may occur in a writable username.
func IsValidUsername ¶
IsValidUsername reports whether username satisfies the writable username format.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.