Documentation
¶
Index ¶
Constants ¶
View Source
const ( AllUses = "all" AiAll = "ai-all" AiTrain = "ai-train" AiInput = "ai-input" AiIndex = "ai-index" Search = "search" Crawl = "crawl" TextAndDataMining = "text-and-data-mining" Tts = "tts" Commercial = "commercial" Advertising = "advertising" Editorial = "editorial" Research = "research" Reproduce = "reproduce" Distribute = "distribute" Modify = "modify" Display = "display" Sync = "sync" Broadcast = "broadcast" Stream = "stream" Print = "print" Manufacture = "manufacture" Sell = "sell" )
Variables ¶
View Source
var Aliases = map[string]string{ "adapt": Modify, "copy": Reproduce, "derivative": Modify, "generative-ai": AiInput, "scrape": Crawl, "tdm": TextAndDataMining, "train-ai": AiTrain, }
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{ AllUses, AiAll, AiTrain, AiInput, AiIndex, Search, Crawl, TextAndDataMining, Tts, Commercial, Advertising, Editorial, Research, Reproduce, Distribute, Modify, Display, Sync, Broadcast, Stream, Print, Manufacture, Sell, }
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.