go-ozzo/ozzo-validation
An idiomatic Go (golang) validation package. Supports configurable and extensible validation rules (validators) using normal language constructs instead of error-prone struct tags. observed · 2026-08-28
Health v2 · maintenance only
98/100
- Activity 99
- Release rhythm 96
- 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: 0
- age_days: 3724
- days_rel: 29
- days_push: 8
- n_releases_24m: 2
Adoption not part of the score
4129 stars · 244 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
ozzo-validation is an idiomatic Go package for configurable and extensible data validation. It uses normal programming constructs instead of error-prone struct tags and ships with a rich set of built-in rules plus easy custom rule creation.
Use cases
- validate request payloads in a Go REST API
- validate struct fields in Go without struct tags
- validate strings, slices, maps, and custom types in Go
- create custom validation rules in Go
- translate validation error messages and codes
When to choose
- you want code-based, type-safe validation in Go instead of struct tags
- you need extensible rules and custom Validatable types
- you need localized or well-formatted validation errors
When to avoid
- you prefer declarative struct-tag validation like go-playground/validator
- you are not working in Go
Facets
library · maturity stable
form-handling developer-tools backend web-development developer-tools go cross-platform validation data-validation struct-validation validators golang-library
1 source
- readme: https://github.com/go-ozzo/ozzo-validation · fetched 2026-08-28 · 746897cd0c4e
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| go-ozzo/ozzo-validation | main | 98 |
For agents
markdown · JSON · MCP: product_card(name="go-ozzo/ozzo-validation")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem