Skip to content

Teamwork/validate

Repository files navigation

Build Status codecov GoDoc

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.

Releases

No releases published

Packages

No packages published

Languages