Involved Source Files
Package tag contains functionality handling tags and related data.
Package-Level Type Names (only one, which is exported)
/* sort exporteds by: | */
An Index converts tags to a compact numeric value.
All elements are of size 4. Tags may be up to 4 bytes long. Excess bytes can
be used to store additional information about the tag.
Elem returns the element data at the given index.
Index reports the index of the given key or -1 if it could not be found.
Only the first len(key) bytes from the start of the 4-byte entries will be
considered for the search and the first match in Index will be returned.
Next finds the next occurrence of key after index x, which must have been
obtained from a call to Index using the same key. It returns x+1 or -1.
func cmp(a Index, b []byte) int
func golang.org/x/text/internal/language.findIndex(idx Index, key []byte, form string) (index int, err error)
func golang.org/x/text/internal/language.getScriptID(idx Index, s []byte) (language.Script, error)
const golang.org/x/text/internal/language.altLangISO3
const golang.org/x/text/internal/language.lang
const golang.org/x/text/internal/language.regionISO
const golang.org/x/text/internal/language.script
Package-Level Functions (total 3, in which 2 are exported)
Compare returns an integer comparing a and b lexicographically.
FixCase reformats b to the same pattern of cases as form.
If returns false if string b is malformed.
cmp returns an integer comparing a and b lexicographically.
The pages are generated with Goldsv0.3.2-preview. (GOOS=darwin GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds.