Go Validation

Open-source Go projects categorized as Validation

Top 23 Go Validation Projects

  • validator

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

    Project mention: API completa em Golang - Parte 7 | dev.to | 2024-02-03
  • govalidator

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

    Project mention: Is there any equivalent to pydantic, serde, etc? | /r/golang | 2023-12-06

    Go uses zero values to provide sensible default values. It's a design choice. With a quick Google you'll find several libraries such as https://github.com/go-playground/validator or https://github.com/asaskevich/govalidator. I use validator whenever I need to ensure any JSON I unmarshalled is correct.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

  • cue

    The home of the CUE language! Validate and define text-based and dynamic configuration

    Project mention: Apple releases Pkl – onfiguration as code language | news.ycombinator.com | 2024-02-03

    I've been somewhat surprised that CUE bills itself as "tooling friendly" and doesn't yet have a language server- the number one bit of tooling most devs use for a particular language.

    I'm assuming it's becaus CUE is still unstable?

    Anyway, if others are interested in CUE's LSP work, I think https://github.com/cue-lang/cue/issues/142 is the issue to subscribe to

  • protoc-gen-validate

    Protocol Buffer Validation - Being replaced by github.com/bufbuild/protovalidate

  • 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: Is there any equivalent to pydantic, serde, etc? | /r/golang | 2023-12-06


  • gatekeeper

    🐊 Gatekeeper - Policy Controller for Kubernetes

    Project mention: Shrink to Secure: Kubernetes and Secure Compact Containers | news.ycombinator.com | 2023-07-02
  • filetype

    Fast, dependency-free Go package to infer binary file types based on the magic numbers header signature

  • WorkOS

    The modern API for authentication & user identity. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

  • kubeconform

    A FAST Kubernetes manifests validator, with support for Custom Resources!

    Project mention: Dealing with Yaml files | /r/kubernetes | 2023-07-05

    If you want to validate your resources against the schema of the resources (mind you also crds) you can use kubeconform.

  • kpt

    Automate Kubernetes Configuration Editing

    Project mention: Introduce KPT KCL SDK - Kubernetes manifests editing with one line of KCL code. | /r/devops | 2023-03-27

    For the kpt tool and kpt kcl SDK, all mutations performed by KCL in place will be checked into git. In reality, KCL is not limited to mutating Kubernetes manifests on the client side. It is also suitable for use in the admission controller (mainly with certain advantages in language features and performance). We also have plans to support the use of KCL by operators in clusters to edit or validate Kubernetes manifests just like Kubevela and CUE language.

  • Package govalidator

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

  • go-proto-validators

    Generate message validators from .proto annotations.

  • email-verifier

    :white_check_mark: A Go library for email verification without sending any emails.

  • Validate

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

  • encoding

    Go package containing implementations of efficient encoding, decoding, and validation APIs.

    Project mention: Handling high-traffic HTTP requests with JSON payloads | /r/golang | 2023-12-07
  • jsonschema

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

  • checkmail

    Golang package for email validation

  • graphql-go-tools

    GraphQL Router / API Gateway framework written in Golang, focussing on correctness, extensibility, and high-performance. Supports Federation v1 & v2, Subscriptions & more.

    Project mention: Optimizing Go string operations with practical examples | news.ycombinator.com | 2023-12-03


    Each iteration of this benchmark measures the aggregate performance of

    - 1x ParseObject

    - 3x AppendObject

    - 3x MergeNodesWithPath

    - 1x PrintNode

    - 1x bytes.Equal comparison of two byte slices

    The benchmark isn't actually benchmarking MergeNodesWithPath, it's benchmarking a much larger composite operation, which includes (multiple) calls to MergeNodesWithPath but also all of the above listed calls as well. If you want to measure MergeNodesWithPath, you would need to have each iteration of the loop do a single MergeNodesWithPath call, on the same JSON method receiver, and with the same input parameters.

  • valgo

    Valgo is a type-safe, expressive, and extensible validator library for Golang. Supports localization and is built with generics.

    Project mention: Request Validations in Go REST API | /r/golang | 2023-05-21
  • validating

    A Go library for validating structs, maps and slices.

    Project mention: Validate inner field based on outer field | /r/golang | 2023-03-14

    If this is the case and you want to reuse come validation rule, maybe you can give validating a try, which is just a helper library whose schema is defined in Go. (disclaimer: I'm the author of this library :)

  • grimoire

    Database access layer for golang (by Fs02)

  • checkdigit

    Provide check digit algorithms and calculators written in Go

  • jio

    jio is a json schema validator similar to joi

    Project mention: Request Validations in Go REST API | /r/golang | 2023-05-21
  • go-map-schema

    Simple JSON type checking.

  • LearnThisRepo.com

    Learn 300+ open source libraries for free using AI. LearnThisRepo lets you learn 300+ open source repos including Postgres, Langchain, VS Code, and more by chatting with them using AI!

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 2024-02-03.

Go Validation related posts


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

Project Stars
1 validator 15,101
2 govalidator 5,901
3 cue 4,627
4 protoc-gen-validate 3,580
5 ozzo-validation 3,504
6 gatekeeper 3,379
7 filetype 1,969
8 kubeconform 1,729
9 kpt 1,604
10 Package govalidator 1,269
11 go-proto-validators 1,057
12 email-verifier 1,019
13 Validate 993
14 encoding 955
15 jsonschema 784
16 checkmail 670
17 graphql-go-tools 615
18 valgo 246
19 validating 213
20 grimoire 160
21 checkdigit 107
22 jio 96
23 go-map-schema 85
Learn 300+ open source libraries for free using AI.
LearnThisRepo lets you learn 300+ open source repos including Postgres, Langchain, VS Code, and more by chatting with them using AI!