github.com/go-ozzo/ozzo-validation

ozzo-validation

Package validation provides configurable and extensible rules for validating data of various types.

71

Decision Signals

Health score 71/100, confidence 100/100.

Review
Maintenance 20
Adoption 100
Security 92
Maturity 84
Developer DX 91
Confidence 100

Install

go get github.com/go-ozzo/ozzo-validation

Package Data

updated Jun 11, 2026
Latest versionv3.6.0+incompatible
Imported by1.3K packages
Stars4.1K
Forks240
Last activity2 years ago
Latest releasev4.3.0 (5 years ago)
LicenseMIT
Known vuln records0

API Surface

73 symbols
SymbolKindSynopsis
DateRule Type type DateRule struct{}
Date Function func Date(layout string) *DateRule
DateRule.Error Method func (r *DateRule) Error(message string) *DateRule
DateRule.Max Method func (r *DateRule) Max(max time.Time) *DateRule
DateRule.Min Method func (r *DateRule) Min(min time.Time) *DateRule
DateRule.RangeError Method func (r *DateRule) RangeError(message string) *DateRule
DateRule.Validate Method func (r *DateRule) Validate(value interface{}) error
EachRule Type type EachRule struct{}
Each Function func Each(rules ...Rule) *EachRule
EachRule.Validate Method func (r *EachRule) Validate(value interface{}) error
ErrFieldNotFound Type type ErrFieldNotFound int
ErrFieldNotFound.Error Method func (e ErrFieldNotFound) Error() string

Maintained Alternatives

limited recent repository activity

#1 Validator

Package validator implements value validations for structs and individual fields based on tags.

Go Validation Libraries 20.0K stars 0 imported-by 65% confidence
88

#2 govalidator

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

Go Validation Libraries 6.2K stars 0 imported-by 45% confidence
83

#3 validate

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

Go Validation Libraries 1.2K stars 0 imported-by 45% confidence
81

Similar Packages

Go Validation Libraries

#1 Validator

Package validator implements value validations for structs and individual fields based on tags.

Go Validation Libraries 20.0K stars 0 imported-by 65% confidence
88

#2 govalidator

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

Go Validation Libraries 6.2K stars 0 imported-by 45% confidence
83

#3 validate

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

Go Validation Libraries 1.2K stars 0 imported-by 45% confidence
81

#4 govalidator

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

Go Validation Libraries 1.3K stars 248 imported-by 100% confidence
71

#5 validation

Package validation provides methods for validating parameter value using reflection.

Go Validation Libraries 215 stars 77.0K imported-by 75% confidence
70