gookit/validate
⚔ Go package for data validation and filtering. support Map, Struct, Form data. Go通用的数据验证与过滤库,使用简单,内置大部分常用验证、过滤器,支持自定义验证器、自定义消息、字段翻译。 observed · 2026-10-15
Health v2 · maintenance only
92/100
- Activity 99
- Release rhythm 79
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-10-21. Adoption (stars, forks) is never an input.
- gap_med: 65.5
- age_days: 3018
- days_rel: 63
- days_push: 7
- n_releases_24m: 9
Adoption not part of the score
1165 stars · 126 forks observed · 2026-10-15
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A generic Go library for data validation and filtering that supports validating Map, Struct, and HTTP Request (Form, JSON, url.Values) data. It includes 70+ built-in validators, data filters/converters, scene-based validation, custom validators, and i18n-aware error messages.
Use cases
- validate form data in a go web app
- validate json request body in gin or echo
- sanitize and convert input before validation
- validate struct fields with tags
- custom error messages and field translations for validation
- validate different fields per scene
- validate individual values against rule strings
When to choose
- you need a batteries-included Go validation library with many built-in validators and filters
- you want automatic validation of http.Request data based on Content-Type
- you need i18n error messages or per-field translations
- you want framework-agnostic validation usable with Gin, Echo, Chi, etc.
When to avoid
- you only need simple struct-tag validation and prefer a minimal dependency-free approach
- your framework already provides a validation layer you must use
- you need validation in a non-Go language
Facets
library · maturity active
form-handling serialization backend web-development developer-tools go cross-platform validation data-filtering sanitization struct-tags i18n http-request-validation
2 sources
- readme: https://github.com/gookit/validate · fetched 2026-10-15 · 071ab18a7ddb
- homepage: https://gookit.github.io/validate/ · fetched 2026-08-29 · d302d52ae043
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| gookit/validate | main | 92 |
For agents
Data as of 2026-10-19T08:05:51.212177+00:00 · Report a problem