Fixes golint errors in pkg/labels

pull/6/head
Yuki Yugui Sonoda 2014-07-11 19:10:15 +09:00
parent 1816a63d55
commit 85fa11da93
2 changed files with 3 additions and 2 deletions

View File

@ -23,10 +23,11 @@ import (
// Labels allows you to present labels independently from their storage.
type Labels interface {
// Get returns the value identified by the label.
Get(label string) (value string)
}
// Set is a map of label:value. Implements Labels.
// Set is a map of label:value. It implements Labels.
type Set map[string]string
// String returns all labels listed as a human readable string.

View File

@ -87,7 +87,7 @@ func try(selectorPiece, op string) (lhs, rhs string, ok bool) {
return "", "", false
}
// SelectorFromSet converts a Set into a Selector.
// SelectorFromSet returns a Selector which will match exactly the given Set.
func SelectorFromSet(ls Set) Selector {
var items []Selector
for label, value := range ls {