https://github.com/teamwork/validate
Simple validation
https://github.com/teamwork/validate
go
Last synced: about 1 year ago
JSON representation
Simple validation
- Host: GitHub
- URL: https://github.com/teamwork/validate
- Owner: Teamwork
- License: mit
- Created: 2017-08-24T12:29:23.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2025-04-15T14:42:03.000Z (about 1 year ago)
- Last Synced: 2025-04-15T15:42:49.564Z (about 1 year ago)
- Topics: go
- Language: Go
- Homepage:
- Size: 126 KB
- Stars: 5
- Watchers: 43
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://travis-ci.com/Teamwork/validate)
[](https://codecov.io/gh/Teamwork/validate)
[](https://godoc.org/github.com/Teamwork/validate)
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.