validator
https://github.com/go-playground/validator
Go
:100:Go Struct and Field validation, including Cross Field, Cross Struct, Map, Slice and Array diving
Triage Issues!
When you volunteer to triage issues, you'll receive an email each day with a link to an open issue that needs help in this project. You'll also receive instructions on how to triage issues.
Triage Docs!
Receive a documented method or class from your favorite GitHub repos in your inbox every day. If you're really pro, receive undocumented methods or classes and supercharge your commit history.
Go not yet supported3 Subscribers
Add a CodeTriage badge to validator
Help out
- Issues
- fix: reject invalid dotted-decimal in hostname_rfc1123 validation
- feat(translations): add Armenian translations
- fix: prevent panic on pointer fields in comparison validators
- 功能请求 是否可以添加 uuid v7 的验证
- fix(ssn): reject mixed separators in SSN validation
- fix(fqdn): reject domain labels with a trailing hyphen
- fix(baked_in): handle "nil" param in excluded_if for pointer fields
- test(baked_in): add regression test for postcode_iso3166_alpha2_field issue #1314
- fix(iso4217): remove BGN as Bulgaria adopted EUR on 2026-01-01
- Expose errors returned by validateFn
- Docs
- Go not yet supported