go-playground/validator
:100:Go Struct and Field validation, including Cross Field, Cross Struct, Map, Slice and Array diving
Build with Backblaze B2
SDKs, agent skills, IDE extensions, and reference pipelines from Backblaze Labs. All open source.
Loading star history...
Where it stands
Rank, growth pace and release cadence relative to everything GStars tracks.
Ranks #120 of 2,502 repositories GStars tracks this week (top 5%).
2 releases in the last 90 days, the latest 7 days ago, with 258 contributors on GitHub.
Peaked at #84 in the weekly ranking the week of Feb 22, its best in the past year.
Use Cases & Benefits
- Implements comprehensive validation for Go structs and fields using tags, supporting cross-field, cross-struct, and complex data types.
- Offers unique features like deep validation of slices, arrays, maps, custom types, and i18n-aware customizable error messages.
- Use for validating complex nested data structures in Go applications to ensure data integrity before processing.
- Use for integrating with the Gin web framework to provide default and customizable request validation in web APIs.
- Use for creating custom validation rules and aliases to simplify and standardize validation logic across large Go codebases.
Should you depend on it?
License terms, project hygiene and risks, from GitHub metadata and GStars' snapshots.
License
MIT
Permissive: commercial use, modification and redistribution are allowed with attribution.
Community files
- README: present
- Contributing guide: present
Watch-outs
No watch-outs from GStars' checks.
General guidance from repository metadata, not legal advice. How we score
From the README
Package validator implements value validations for structs and individual fields based on tags.
Please read the discussiong started here if you are interested in contributing/helping maintain this package.
Use go get.
Then import the validator package into your own code.
Daily snapshots
Stars gained per day, and how forks and open issues moved, from GStars' daily snapshots
+125 stars over 84 days across 9 snapshot days.
Forks
1.5K+38
Open issues
338+21
Compared with peers in Backend
Fastest-growing repositories GStars tracks in this cohort for the week of Sep 27, by 7-day star growth
| Repository | Stars | +7d | Health | Last release |
|---|---|---|---|---|
| vectorize-io/hindsight | 49.3K | +16.2K | 75 | today |
| NVIDIA/OpenShell | 16.1K | +5.5K | 75 | 209 days ago |
| google/ax | 12.9K | +1.8K | 75 | 7 days ago |
| block/buzz | 35.6K | +1.1K | 45 | today |
| bendlang/bend | 23.0K | +958 | 75 | 1 day ago |
| go-playground/validator | 20.2K | +11 | 75 | 7 days ago |
| Category median | 23.0K | +1.8K | 75 | — |
Discover Repositories
Search across tracked repositories by name or description