#1 Validator
Package validator implements value validations for structs and individual fields based on tags.
Package validation provides methods for validating parameter value using reflection.
Health score 70/100, confidence 75/100.
| Latest version | v0.3.2 |
| Imported by | 77.0K packages |
| Stars | 215 |
| Forks | 177 |
| Last activity | 1 years ago |
| Latest release | tracing/v0.6.1 (1 years ago) |
| License | Apache-2.0 |
| Known vuln records | 0 |
| Symbol | Kind | Synopsis |
|---|---|---|
| Constraint | Type | type Constraint struct{ ... } |
| Constraint.Chain | Field | Chain []Constraint |
| Constraint.Name | Field | Name string |
| Constraint.Rule | Field | Rule interface{} |
| Constraint.Target | Field | Target string |
| Error | Type | type Error struct{ ... } |
| Error.Error | Method | func (e Error) Error() string |
| Error.Message | Field | Message string |
| Error.Method | Field | Method string |
| Error.PackageType | Field | PackageType string |
| NewError | Function | func NewError(packageType string, method string, message string, args ...interface{}) Error |
| Validation | Type | type Validation struct{ ... } |
Package validator implements value validations for structs and individual fields based on tags.
[Go] Package of validators and sanitizers for strings, numerics, slices and structs
⚔ Go package for data validation and filtering. support Map, Struct, Form data. Go通用的数据验证与过滤库,使用简单,内置大部分常用验证、过滤器,支持自定义验证器、自定义消息、字段翻译。
Validate Golang request data with simple rules. Highly inspired by Laravel's request validation.
Package validation provides configurable and extensible rules for validating data of various types.
Package validator implements value validations for structs and individual fields based on tags.
[Go] Package of validators and sanitizers for strings, numerics, slices and structs
⚔ Go package for data validation and filtering. support Map, Struct, Form data. Go通用的数据验证与过滤库,使用简单,内置大部分常用验证、过滤器,支持自定义验证器、自定义消息、字段翻译。
Validate Golang request data with simple rules. Highly inspired by Laravel's request validation.
Package validation provides configurable and extensible rules for validating data of various types.