Skip to content

Commit

Permalink
Fixes golint errors in pkg/labels
Browse files Browse the repository at this point in the history
  • Loading branch information
yugui committed Jul 11, 2014
1 parent 1816a63 commit 85fa11d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion pkg/labels/labels.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion pkg/labels/selector.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 85fa11d

Please sign in to comment.