Categories

Validation

Libraries for validation.

Repos

44

Stars

44,108

30 days

+310

go-playground

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

Created Feb 2015

error-handling translation validation
Total 20,260
30 days +52
asaskevich

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

Created Jun 2014

go govalidator sanitization validation validation-library
Total 6,206
30 days +4
go-ozzo

An idiomatic Go (golang) validation package. Supports configurable and extensible validation rules (validators) using normal language constructs instead of error-prone struct tags.

Created Jun 2016

go golang ozzo validation validator
Total 4,164
30 days +10
thedevsaddam

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

Created Sep 2017

go-request-validation go-validator govalidator request validation
Total 1,346
30 days +2
Oudwins

Go with Zod inspired simple schema validation

Created Jun 2024

error-handling golang runtime-validation schema-validation templ
Total 1,223
30 days +5
gookit

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

Created Jul 2018

filter govalidator validate validation validator
Total 1,167
30 days +2
guiferpa

🎈 A lightweight struct validator for Go

Created Nov 2018

go golang struct struct-tags validator
Total 179
30 days +0
faceair

jio is a json schema validator similar to joi

Created Oct 2018

golang joi schema validation
Total 126
30 days +0
twharmon

Struct validation using tags

Created Feb 2019

go validation
Total 120
30 days +0
osamingo

Provide check digit algorithms and calculators written in Go

Created Apr 2019

checkdigit damm ean ean13 ean8
Total 114
30 days +0
gobuffalo

This package provides a framework for writing validations for Go applications.

Created Feb 2018

go gobuffalo golang models pop
Total 94
30 days +0
cinar

Zero-dependency Go input validation, in-place normalization, and JSON Schema generation from struct tags.

Created Jun 2023

echo fiber gin go golang
Total 56
30 days +2
nobl9

Go validation library with functional API built on top of generics, statically typed and batteries included 🔥

Created Aug 2024

error-handling generics go type-safe validation
Total 54
30 days +0

More

bufbuild

Protocol Buffer Validation - Go, Java, Python, C++ and JS/TS

Created May 2023

cc cel common-expression-language cpp ecmascript
Total 1,591
30 days +11
go-validator

Package validator implements struct field validations

Created Apr 2014

Total 1,333
30 days +0
kamalyes

零依赖 · 高性能 Go 结构体校验器

Created May 2026

Total 585
30 days +211
cohesivestack

Valgo is a type-safe, expressive, and extensible validation library for Go with built-in i18n support.

Created May 2019

go golang validation validator
Total 510
30 days +1
bufbuild

Protocol Buffer Validation for Go

Created May 2023

cel common-expression-language go golang protobuf
Total 498
30 days +2
guanguans

China ID number validator. - 中国身份证号验证器。

Created Jan 2021

id idcard idcard-check idcard-detect idcard-generator
Total 236
30 days +1
RussellLuo

A Go library for validating structs, maps and slices.

Created Aug 2017

go validation
Total 229
30 days +0
kaptinlin

Go library for JSON Schema Draft 2020-12 validation with enhanced outputs and multilingual error messages

Created Apr 2024

jsonschema jsonschema-validator validation validator
Total 227
30 days +0
rhevorn

Type-safe, dependency-free schema validation for Go 1.24+, with generics, JSON parsing, localized errors, JSON Schema, and OpenAPI support.

Created Sep 2026

Total 170
30 days +1
paemuri

Brazilian documents validator for Go: CPF, CNPJ, CEP, IE, CNJ, NF-e and more

Created Oct 2016

brazil cep cnh cnj cnpj
Total 147
30 days +0
go-openapi

openapi toolkit validation helpers

Created Apr 2016

openapi swagger2
Total 147
30 days +2
pb33f

OpenAPI validation extension for libopenapi, validate http requests and responses as well as schemas

Created Mar 2023

go golang http openapi openapi-spec
Total 146
30 days +0
connectrpc

Flexible, efficient request validation for Connect.

Created Aug 2023

connectrpc golang protobuf protovalidate rpc
Total 121
30 days +2
kat-co

A simple, extensible, library to make argument validation in Go palatable.

Created Aug 2014

arguments go parameters validation
Total 115
30 days +0
invopop

An idiomatic Go validation package. Supports configurable and extensible validation rules (validators) using normal language constructs instead of error-prone struct tags.

Created Feb 2023

Total 109
30 days +0
bluesky335

身份证号码、法人和其他组织统一社会信用代码 的合法性校验

Created Dec 2019

Total 99
30 days +0
aymaneallaoui

a Go-based validation library inspired by the popular Zod library in TypeScript

Created Sep 2024

go golang golang-library validation validation-error
Total 93
30 days +1
golodash

Galidator is a validator for golang which provides a general use case approach for validation purposes.

Created Aug 2022

galidator go golang validation validator
Total 85
30 days +0
metafates

📐 Go schema declaration and validation with static types.

Created Apr 2025

codegen generics go library validation
Total 83
30 days +0
pengux

Package for data validation in Go

Created Feb 2014

Total 81
30 days +0
softbrewery

Validation library for Golang

Created Feb 2018

Total 77
30 days +0
liangyaopei

Golang parameter validation, which can replace go-playground/validator, includes ncluding Cross Field, Map, Slice and Array diving, provides readable,flexible, configurable validation.

Created Nov 2020

govalidator validate validation validator verification
Total 75
30 days +0
aliuygur

Micro check library in Golang.

Created Aug 2016

golang micro validation validator
Total 72
30 days +0
yashx

A type-safe Go validation library built on generics and higher-order functions. Uses plain Go constructs — no reflection, no struct tags — so validation rules are just functions that compose naturally with the rest of your code.

Created Mar 2026

go golang validation validator
Total 64
30 days +0
rezakhademix

A simple, efficient, type-safe, easy to use Golang validator without any struct tag or type assertion.

Created Feb 2024

go golang govalidator validation validator
Total 61
30 days +0
gima

Data validation library for golang. [MIGRATING TO NEW ADDRESS]

Created Jan 2015

golang json schema validation
Total 59
30 days +0
smokezl

struct 验证器,内置大部分常用验证,可自定义

Created Oct 2018

golang govalidator struct validation validator
Total 56
30 days +0
SladeThe

Fast, Go struct, field and plain value validation library

Created Jan 2023

Total 50
30 days +0
bytedance

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

Created Jan 2019 Archived

binding dsl expression go struct-tag
Total 1,726
30 days +1
katydid

Encoding Agnostic Validation (Validation Language, Parsers and Encoders)

Created Nov 2013 Archived

automata converter encoder go nested-structures
Total 94
30 days +0

From awesome-go (MIT), plus repos sorted by Jev.