Simple validation
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
.codecov.yml
.editorconfig
.gitattributes
.gitignore
.ignore
.travis.yml
Gopkg.lock
Gopkg.toml
LICENSE
README.md
go.mod
go.sum
messages.go
validate.go
validate_test.go

README.md

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.