package tag
import "go.mongodb.org/mongo-driver/tag"
Index ¶
- type Set
- func NewTagSetFromMap(m map[string]string) Set
- func NewTagSetsFromMaps(maps []map[string]string) []Set
- func (ts Set) Contains(name, value string) bool
- func (ts Set) ContainsAll(other []Tag) bool
- func (ts Set) String() string
- type Tag
Types ¶
type Set ¶
type Set []Tag
Set is an ordered list of Tags.
func NewTagSetFromMap ¶
NewTagSetFromMap creates a new tag set from a map.
func NewTagSetsFromMaps ¶
NewTagSetsFromMaps creates new tag sets from maps.
func (Set) Contains ¶
Contains indicates whether the name/value pair exists in the tagset.
func (Set) ContainsAll ¶
ContainsAll indicates whether all the name/value pairs exist in the tagset.
func (Set) String ¶
String returns a human-readable human-readable description of the tagset.
type Tag ¶
Tag is a name/vlaue pair.
func (Tag) String ¶
String returns a human-readable human-readable description of the tag.
Source Files ¶
tag.go
- Version
- v1.4.0-beta2
- Published
- Jun 9, 2020
- Platform
- linux/amd64
- Imports
- 2 packages
- Last checked
- 6 minutes ago –
Tools for package owners.