Go Validator

Open-source Go projects categorized as Validator

Top 12 Go Validator Projects

  • gf

    GoFrame is a modular, powerful, high-performance and enterprise-class application development framework of Golang. (by gogf)

    Project mention: GoFrame | reddit.com/r/golang | 2022-09-26
  • 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.

    Project mention: Suggestion for a dynamic Struct Validation Rules | reddit.com/r/golang | 2022-12-21

    https://github.com/go-ozzo/ozzo-validation Seems to do what I need but likely will need some convoluted reflection to build out the rules. Also likely some custom rules to be written which is okay since it's a one time cost and reuse in the expressions.

  • SonarLint

    Clean code begins in your IDE with SonarLint. Up your coding game and discover issues early. SonarLint is a free plugin that helps you find & fix bugs and security issues from the moment you start writing code. Install from your favorite IDE marketplace today.

  • go-tagexpr

    An interesting go struct tag expression syntax for field validation, etc.

    Project mention: Web Development JWT Practices | dev.to | 2022-11-17

    Hertz uses the open-source library go-tagexpr for parameter binding and validation, which the current demo uses for user registration and login.

  • Package govalidator

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

  • Validate

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

    Project mention: GitHub - gookit/validate: ⚔ Go package for data validation and filtering. support Map, Struct, Form data. | reddit.com/r/golang | 2022-06-12
  • jsonschema

    JSONSchema (draft 2020-12, draft 2019-09, draft-7, draft-6, draft-4) Validation using Go (by santhosh-tekuri)

    Project mention: Validating dynamic JSON user input | reddit.com/r/golang | 2022-10-29

    If I were doing it, I would define struct that match the data you expect and update those struct as the project progresses. Also if I were doing it I'd explicitly not allow values with different types for the same key so that would prevent me from having to declare value types as interface{}. If you want a more general purpose validation of arbitrary JSON, you could define a JSON schema and validate it with a library like this.

  • pint

    Prometheus rule linter/validator (by cloudflare)

  • InfluxDB

    Build time-series-based applications quickly and at scale.. InfluxDB is the Time Series Platform where developers build real-time applications for analytics, IoT and cloud-native services. Easy to start, it is available in the cloud or on-premises.

  • codeowners-validator

    The GitHub CODEOWNERS file validator

  • gody

    :balloon: A lightweight struct validator for Go

  • valix

    Go package for validating requests

  • clerk

    An executable JSON validator with JSON schema to validate documents from local files or databases. (by lisez)

  • yavp

    Yet Another Validation Package for golang, inspired by https://www.npmjs.com/package/validator

    Project mention: Yet Another Validation Package for Golang! | reddit.com/r/golang | 2022-02-27

    Just want to share my little package for validation/validator.

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020). The latest post mention was on 2022-12-21.

Go Validator related posts


What are some of the best open-source Validator projects in Go? This list will help you:

Project Stars
1 gf 8,780
2 ozzo-validation 3,066
3 go-tagexpr 1,361
4 Package govalidator 1,179
5 Validate 834
6 jsonschema 546
7 pint 512
8 codeowners-validator 151
9 gody 62
10 valix 7
11 clerk 1
12 yavp 1
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives