HTTP request parameter validation for Go.
Basic usage example:
v := validate.New()
v.Required("firstName", customer.FirstName)
if v.HasErrors() {
fmt.Println("Had the following validation errors:")
for key, errors := range v.Errors {
fmt.Printf(" %s: %s", key, strings.Join(errors))
}
}
See godoc for more info.