functiontokens

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

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.

All lists every registered token in registration order.

Functions

func Canonical

func Canonical(s string) string

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

func IsRegistered(s string) bool

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.

Jump to

Keyboard shortcuts

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