Documentation
¶
Index ¶
Constants ¶
View Source
const ( Individual = "individual" Academic = "academic" NonProfit = "non_profit" NewsPublisher = "news_publisher" Broadcaster = "broadcaster" CommercialEntity = "commercial_entity" )
Variables ¶
View Source
var Aliases = map[string]string{ "business": CommercialEntity, "enterprise": CommercialEntity, "personal": Individual, }
Aliases maps an accepted alias spelling to the registered token it canonicalises to. Authored beside the tokens; an axis without aliases carries an empty map so every axis has the same face.
View Source
var All = []string{ Individual, Academic, NonProfit, NewsPublisher, Broadcaster, CommercialEntity, }
All lists every registered token in registration order.
Functions ¶
func Canonical ¶
Canonical returns the registered token s is an alias of, or s unchanged when it is not an alias. It neither trims nor case-folds: the SDK folds a token before it looks it up here.
func IsRegistered ¶
IsRegistered reports whether s is a registered bare token. Namespaced (vendor:token) values are NOT registered tokens and return false.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.