github.com/go-ozzo/ozzo-validation

ozzo-validation

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

73

Decision Signals

Health score 73/100, confidence 100/100.

Strong
Maintenance 27
Adoption 100
Security 92
Maturity 84
Developer DX 91
Confidence 100

Install

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

Package Data

updated May 31, 2026
Latest versionv3.6.0+incompatible
Imported by1.3K packages
Stars4.1K
Forks240
Last activity2 years ago
Latest releaseUnknown
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 validate

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

Go Validation Libraries 1.1K stars 187 imported-by 65% confidence
93

#2 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

#4 validation

Package validation provides methods for validating parameter value using reflection.

Go Validation Libraries 0 stars 77.0K imported-by 75% confidence
69

Similar Packages

Go Validation Libraries

#1 validate

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

Go Validation Libraries 1.1K stars 187 imported-by 65% confidence
93

#2 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

#4 validation

Package validation provides methods for validating parameter value using reflection.

Go Validation Libraries 0 stars 77.0K imported-by 75% confidence
69

#5 govalidator

Package govalidator is package of validators and sanitizers for strings, structs and collections.

Go Validation Libraries 0 stars 4.7K imported-by 80% confidence
57