awesome-repositories.com
Blog
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectAboutHow we rankPressMCP server
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·

Go Validation Libraries

Ranking updated Jul 13, 2026

For a data validation library for Go, the strongest matches are go-playground/validator (This library is the industry-standard tool for Go struct), go-ozzo/ozzo-validation (This library provides a robust, interface-based approach to validating) and go-validator/validator (This library is the standard Go framework for struct-based). asaskevich/govalidator and thedevsaddam/govalidator round out the shortlist. Each is ranked by relevance to your query, popularity and recent activity.

We curate open-source GitHub repositories matching “best go validation libraries”. Results are ranked by relevance to your query — pick filters below to narrow, or refine with AI.

Go Validation Libraries

Find the best repos with AI.We'll search the best matching repositories with AI.
  • go-playground/validatorgo-playground avatar

    go-playground/validator

    20,028View on GitHub↗

    This is a Go struct validation library used to maintain data integrity by enforcing constraints on fields, slices, and maps. It functions as a schema validation tool and data integrity validator, ensuring that complex nested structures adhere to predefined rules. The library utilizes struct tags to configure validation logic at runtime and supports a custom function registry for extending validation rules. It is distinguished by its ability to perform cross-field dependency evaluation, allowing the comparison of values between different fields within the same data structure to ensure logical

    This library is the industry-standard tool for Go struct validation, offering comprehensive support for struct tags, custom rules, cross-field dependencies, and nested validation.

    GoCross-Field ValidatorsRecursive Hierarchy ValidationCross-Field Dependencies
    View on GitHub↗20,028
  • go-ozzo/ozzo-validationgo-ozzo avatar

    go-ozzo/ozzo-validation

    4,072View on GitHub↗

    ozzo-validation is a programmable data validation library for Go that verifies structs, maps, and primitive types using a declarative, rule-based approach. It functions as an interface-based validator, allowing for the recursive checking of nested data structures and custom types without the use of struct tags. The framework distinguishes itself as a context-aware validation engine, supporting the propagation of request-scoped data to rules that depend on external state. It provides extensive extensibility through custom rule definitions and the ability to override default failure text with l

    This library provides a robust, interface-based approach to validating Go structs and nested data structures, offering extensive support for custom rules and complex validation logic without relying on struct tags.

    GoCustom Validation RulesLocalized Error MessagesNested Object Validation
    View on GitHub↗4,072
  • go-validator/validatorgo-validator avatar

    go-validator/validator

    1,335View on GitHub↗

    This project is a data validation framework for the Go programming language that enforces integrity by applying declarative constraints to struct fields. It utilizes reflection to inspect data structures at runtime, mapping field-level requirements defined in struct tags to specific validation logic. The library distinguishes itself through its ability to handle complex object graphs by recursively traversing nested structures and slices. It supports context-aware validation, allowing developers to switch between different rule sets for the same data structure based on application state or sp

    This library is the standard Go framework for struct-based data validation, offering comprehensive support for nested structures, custom rules, and cross-field validation via struct tags.

    GoStruct Tag Validators
    View on GitHub↗1,335
  • asaskevich/govalidatorasaskevich avatar

    asaskevich/govalidator

    6,203View on GitHub↗

    Go Package of validators and sanitizers for strings, numerics, slices and structs

    This library provides a comprehensive suite of struct tag-based validation and sanitization tools for Go, making it a direct fit for validating data structures and user input.

    GoStruct Tag Validators
    View on GitHub↗6,203
  • thedevsaddam/govalidatorthedevsaddam avatar

    thedevsaddam/govalidator

    1,344View on GitHub↗

    Validate Golang request data with simple rules. Highly inspired by Laravel's request validation.

    This library provides a straightforward way to validate Go request data using struct tags and custom rules, making it a solid choice for handling input validation despite lacking some of the more advanced features like complex cross-field validation.

    GoValidation Libraries
    View on GitHub↗1,344
  • gookit/validategookit avatar

    gookit/validate

    1,156View on GitHub↗

    ⚔ Go package for data validation and filtering. support Map, Struct, Form data. Go通用的数据验证与过滤库,使用简单,内置大部分常用验证、过滤器,支持自定义验证器、自定义消息、字段翻译。

    This library provides comprehensive struct tag validation, custom rule support, and nested validation for Go, making it a direct fit for your data validation needs.

    GoValidation Libraries
    View on GitHub↗1,156

Related searches

  • a data validation library for Rust
  • a java library for data validation
  • a library for validating data in PHP
  • a lightweight validation library for JavaScript
  • a data validation library using Python type hints
  • a form validation library for React
  • a testing framework for Go applications
  • a runtime type validation library for TypeScript