Documentation
¶
Overview ¶
Package handle is the grammar of an Agentry handle, the name of a person or an organization: the first segment of every /<namespace>/<name> path, and the namespace of every QuickAgent. A directory that lets people choose a username the registry will seed their handle from holds its own copy of these rules, and tests its copy against this package.
Index ¶
Constants ¶
const Grammar = `^[a-z0-9](?:[a-z0-9-]{0,37}[a-z0-9])?$`
Grammar is a handle's form: one to thirty-nine lower-case ASCII letters, digits and hyphens, starting and ending with a letter or a digit.
Variables ¶
This section is empty.
Functions ¶
func FirstPartyNames ¶
func FirstPartyNames() []string
FirstPartyNames lists the first-party names, sorted.
func IsFirstParty ¶
IsFirstParty reports whether h is one of the product's own names, which only platform staff may give an organization.
func IsPath ¶
IsPath reports whether h is one of the root paths no account or organization may ever take, platform staff included.
Types ¶
This section is empty.