labels

package
v2.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Label

type Label struct {
	Key, Value string
}

type Labels

type Labels []Label

The Labels type represents a set of labels, sorted by Key.

func New

func New(args ...string) Labels

New takes an even number of strings representing key-value pairs and creates a new slice of Labels. Duplicates are removed, however, there is no guarantee which will be removed

func (*Labels) Merge

func (ls *Labels) Merge(other Labels)

Merge merges other with the current set, replacing any matching keys from other.

Jump to

Keyboard shortcuts

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