go-playground/validator
:100:Go Struct and Field validation, including Cross Field, Cross Struct, Map, Slice and Array diving observed · 2026-08-28
Health v2 · maintenance only
90/100
- Activity 99
- Release rhythm 74
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 59
- age_days: 4220
- days_rel: 96
- days_push: 7
- n_releases_24m: 12
Adoption not part of the score
20132 stars · 1449 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
A Go library for validating structs and individual fields using struct tags, with support for cross-field, cross-struct, and nested map/slice/array validation. It is the default validator for the Gin web framework and supports customizable i18n-aware error messages.
Use cases
- validate request payloads in a Go web API
- validate struct fields with tags in Go
- validate nested slices and maps in Go structs
- add cross-field validation rules to Go structs
- generate localized validation error messages
- validate JSON field names in error output
When to choose
- you need tag-based struct and field validation in Go
- you use Gin and want its default validator
- you need to validate deeply nested data structures
- you need i18n-aware validation error messages
When to avoid
- you need schema validation for raw JSON/YAML documents rather than Go structs
- you want a standalone validation service or CLI
- your project is not written in Go
Facets
library · maturity stable
testing error-handling middleware developer-tools backend web-development go cross-platform struct-validation validation-tags i18n gin field-validation
1 source
- readme: https://github.com/go-playground/validator · fetched 2026-08-28 · 77e61f61039c
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| go-playground/validator | main | 90 |
For agents
markdown · JSON · MCP: product_card(name="go-playground/validator")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem