switch to different types for different parts of the label query

This commit is contained in:
Daniel Smith
2014-06-16 22:04:28 -07:00
parent 3b980bd9dc
commit c4e575d4ac
2 changed files with 51 additions and 73 deletions

View File

@@ -29,7 +29,7 @@ type Labels interface {
// A map of label:value. Implements Labels.
type Set map[string]string
// All labels listed as a human readable string. Conveiently, exactly the format
// All labels listed as a human readable string. Conveniently, exactly the format
// that ParseQuery takes.
func (ls Set) String() string {
query := make([]string, 0, len(ls))