identifier

package
v0.31.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 19, 2026 License: MIT Imports: 1 Imported by: 0

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

func IsUsernameCharacter(char byte) bool

IsUsernameCharacter reports whether an ASCII byte may occur in a writable username.

func IsValidUsername

func IsValidUsername(username string) bool

IsValidUsername reports whether username satisfies the writable username format.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL