tag

package
v0.0.18 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2018 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Set

type Set []Tag

Set is an ordered list of Tags.

func NewTagSetFromMap

func NewTagSetFromMap(m map[string]string) Set

NewTagSetFromMap creates a new tag set from a map.

func NewTagSetsFromMaps

func NewTagSetsFromMaps(maps []map[string]string) []Set

NewTagSetsFromMaps creates new tag sets from maps.

func (Set) Contains

func (ts Set) Contains(name, value string) bool

Contains indicates whether the name/value pair exists in the tagset.

func (Set) ContainsAll

func (ts Set) ContainsAll(other []Tag) bool

ContainsAll indicates whether all the name/value pairs exist in the tagset.

type Tag

type Tag struct {
	Name  string
	Value string
}

Tag is a name/vlaue pair.

Jump to

Keyboard shortcuts

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