Documentation ¶
Overview ¶
Package tag contains functionality handling tags and related data.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Compare ¶
Compare returns an integer comparing a and b lexicographically.
Types ¶
type Index ¶
type Index string
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.
func (Index) Elem ¶
Elem returns the element data at the given index.
func (Index) 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.
Click to show internal directories.
Click to hide internal directories.