go-validator/validator
Package validator implements struct field validations observed · 2026-08-28
Health v2 · maintenance only
23/100
- Activity 0
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 4509
- days_rel: n/a
- days_push: 1611
- n_releases_24m: 0
Adoption not part of the score
1332 stars · 124 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A Go library that validates struct fields via struct tags, with built-in validators like min, max, len, nonzero, nonnil, and regexp, plus support for custom validation functions. It is the older gopkg.in/validator.v2 package, now largely superseded by go-playground/validator.
Use cases
- validate struct fields in go with tags
- validate incoming api request payloads in go
- check string length and regex constraints on go structs
- add custom validation rules to go structs
- validate form input before saving to database
When to choose
- you maintain a legacy codebase already using gopkg.in/validator.v2
- you want a small, simple tag-based struct validator with minimal dependencies
When to avoid
- starting a new Go project - go-playground/validator is more feature-rich and actively maintained
- you need nested struct validation, cross-field rules, or rich error messages
Facets
library · maturity maintenance
testing developer-tools developer-tools backend web-development go cross-platform struct-validation input-validation go-library form-validation
1 source
- readme: https://github.com/go-validator/validator · fetched 2026-08-28 · 98dcfedd8434
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| go-validator/validator | main | 23 |
For agents
markdown · JSON · MCP: product_card(name="go-validator/validator")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem