#1 Validator
Package validator implements value validations for structs and individual fields based on tags.
Validate Golang request data with simple rules. Highly inspired by Laravel's request validation.
Health score 71/100, confidence 100/100.
| Latest version | v1.9.10 |
| Imported by | 248 packages |
| Stars | 1.3K |
| Forks | 122 |
| Last activity | 2 years ago |
| Latest release | v1.9.9 (6 years ago) |
| License | MIT |
| Known vuln records | 0 |
| Symbol | Kind | Synopsis |
|---|---|---|
| Bool | Type | type Bool struct{ ... } |
| Bool.IsSet | Field | IsSet bool |
| Bool.MarshalJSON | Method | func (i *Bool) MarshalJSON() ([]byte, error) |
| Bool.UnmarshalJSON | Method | func (i *Bool) UnmarshalJSON(data []byte) error |
| Bool.Value | Field | Value bool |
| Float32 | Type | type Float32 struct{ ... } |
| Float32.IsSet | Field | IsSet bool |
| Float32.MarshalJSON | Method | func (i *Float32) MarshalJSON() ([]byte, error) |
| Float32.UnmarshalJSON | Method | func (i *Float32) UnmarshalJSON(data []byte) error |
| Float32.Value | Field | Value float32 |
| Float64 | Type | type Float64 struct{ ... } |
| Float64.IsSet | Field | IsSet bool |
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通用的数据验证与过滤库,使用简单,内置大部分常用验证、过滤器,支持自定义验证器、自定义消息、字段翻译。
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通用的数据验证与过滤库,使用简单,内置大部分常用验证、过滤器,支持自定义验证器、自定义消息、字段翻译。
Package validation provides configurable and extensible rules for validating data of various types.
Package validation provides methods for validating parameter value using reflection.