Categories

Validation

Libraries for validation.

Repos

44

Stars

44,103

30 days

+305

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,163
30 days +9
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,345
30 days +1
gookit

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

Created Jul 2018

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

🎈 A lightweight struct validator for Go

Created Nov 2018

go golang struct struct-tags validator
Total 179
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

More

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 509
30 days +0
guanguans

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

Created Jan 2021

id idcard idcard-check idcard-detect idcard-generator
Total 236
30 days +1
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
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
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
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
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
smokezl

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

Created Oct 2018

golang govalidator struct validation validator
Total 56
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,725
30 days +0

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