Update Service and ReplControllers to validate

Validations are performed on update and on create.
This commit is contained in:
Clayton Coleman
2014-07-25 12:18:48 -04:00
parent d32024870a
commit 5bc19584a5
5 changed files with 149 additions and 14 deletions

View File

@@ -154,12 +154,3 @@ func ParseSelector(selector string) (Selector, error) {
}
return andTerm(items), nil
}
// MustParseSelector parses the selection or panics.
func MustParseSelector(selector string) Selector {
s, err := ParseSelector(selector)
if err != nil {
panic(err)
}
return s
}