package
Version:
v0.5.0
Opens a new window with list of versions in this module.
Published: Jun 15, 2026
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
t := New(nil)
t.Add("k=1")
t.Add("k=2")
fmt.Println(t.Unique())
fmt.Println(t.Values("k="))
Output:
[k=1 k=2]
[1 2]
ToLabels constructs a map of a list of labels.
ToLabels constructs a list of labels.
Tags holds tags.
New creates a new Tag instance.
Has checks whether the given tag is contained in the tags.
HasPrefix checks whether the given prefix is contained in the tags.
NewTag creates a new tag from a given key and value.
Unique returns the distinct tag values as sorted slice.
Values collects all the values that are contained with the given prefix.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.