go-playground

    go-playground/validator

    #464 this week

    :100:Go Struct and Field validation, including Cross Field, Cross Struct, Map, Slice and Array diving

    backend
    error-handling
    translation
    validation
    Go
    MIT
    20.2K stars
    1.5K forks
    20.2K GitHub watchers
    Updated Oct 15, 2026
    View on GitHub

    Build with Backblaze B2

    SDKs, agent skills, IDE extensions, and reference pipelines from Backblaze Labs. All open source.

    Explore Backblaze Labs

    Loading star history...

    Where it stands

    Rank, growth pace and release cadence relative to everything GStars tracks.

    Ranks #464 of 2,845 repositories GStars tracks this week (top 16%).

    2 releases in the last 90 days, the latest 25 days ago, with 261 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.

    Excerpt from the go-playground/validator README on GitHub (MIT license). © its authors.Read the full README on GitHub

    Daily snapshots

    Stars gained per day, and how forks and open issues moved, from GStars' daily snapshots

    Sep 9: +0

    +116 stars over 79 days across 8 snapshot days.

    Forks

    1.5K+34

    Open issues

    344+24

    Compared with peers in Backend

    Fastest-growing repositories GStars tracks in this cohort for the week of Oct 11, by 7-day star growth

    go-playground/validator compared with Backend repositories by stars, 7-day star growth, health score and last release
    RepositoryStars+7dHealthLast release
    NationalSecurityAgency/ghidra93.2K+7.5K75today
    DuarteSantos8/openGym14.9K+4.4K5912 days ago
    K-Dense-AI/scientific-agent-skills53.9K+3.2K7521 days ago
    666ghj/MiroFish80.7K+2.4K23226 days ago
    anthropics/claude-plugins-official43.9K+2.3K35—
    go-playground/validator20.2K+07525 days ago
    Category median53.9K+3.2K59—

    Discover Repositories

    Search across tracked repositories by name or description