asaskevich/govalidator
[Go] Package of validators and sanitizers for strings, numerics, slices and structs observed · 2026-08-28
Health v2 · maintenance only
67/100
- Activity 98
- 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: 4457
- days_rel: n/a
- days_push: 13
- n_releases_24m: 0
Adoption not part of the score
6205 stars · 572 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
govalidator is a Go package providing validators and sanitizers for strings, numerics, slices, and structs, inspired by validator.js. It supports struct tag-based validation with options like requiring all fields to have validation tags by default.
Use cases
- validate email addresses and other string formats in Go
- validate struct fields using struct tags
- sanitize user input strings
- require all struct fields to have validation rules
- validate API request payloads in Go services
- validate numeric ranges and slice contents
When to choose
- you need battle-tested validation in Go with wide adoption (used by Kubernetes, Vault, Docker)
- you want struct tag-based declarative validation
- you need both validation and sanitization in one package
When to avoid
- you need high-performance validation with zero reflection overhead
- you prefer a different validation API style like go-playground/validator
- your project is not written in Go
Facets
library · maturity stable
testing serialization developer-tools developer-tools backend web-development apis go cross-platform validation sanitization struct-validation input-validation go-library
3 sources
- readme: https://github.com/asaskevich/govalidator · fetched 2026-08-28 · c59ba54cad59
- homepage: https://asaskevich.dev/projects/govalidator/ · fetched 2026-08-29 · a27535aa86c9
- site_page: https://asaskevich.dev/ · fetched 2026-08-29 · 2e86f2151228
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| asaskevich/govalidator | main | 67 |
For agents
markdown · JSON · MCP: product_card(name="asaskevich/govalidator")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem