Separate labels and selector in services for clarity

This commit is contained in:
Daniel Smith
2014-06-18 16:01:49 -07:00
parent 59c08db4c1
commit c4649d539b
8 changed files with 39 additions and 23 deletions

View File

@@ -45,3 +45,8 @@ func (ls Set) String() string {
func (ls Set) Get(label string) string {
return ls[label]
}
// Convenience function: convert these labels to a query.
func (ls Set) AsQuery() Query {
return QueryFromSet(ls)
}