Package strpair implements parsing and formatting of lists of
colon-delimited key-value pair strings.
Example of pairs:
master:tryserver.chromium.linux
builder:linux_chromium_rel_ng
buildset:patch/gerrit/chromium-review.googlesource.com/677784/5
Format formats a pair from a key and a value.
Parse parses a colon-delimited key-value pair.
If pair does not have ":", the whole string becomes the key with an empty
value.
Map contains parsed string pairs.
ParseMap parses a list of colon-delimited key-value pair strings.
Add adds the value to key. It appends to any existing
values associated with key.
Contains returns true if m contains the key-value pair.
Copy returns a deep copy of m.
Del deletes the values associated with key.
Format converts m to a sorted list of strings.
Get gets the first value associated with the given key.
If there are no values associated with the key, Get returns
the empty string. To access multiple values, use the map
directly.
Set sets the key to value. It replaces any existing values.