#1 Validator
Package validator implements value validations for structs and individual fields based on tags.
Package validation provides configurable and extensible rules for validating data of various types.
Health score 73/100, confidence 95/100.
| Latest version | v4.3.0 |
| Imported by | 2.3K packages |
| Stars | 4.1K |
| Forks | 239 |
| Last activity | 2 years ago |
| Latest release | v4.3.0 (5 years ago) |
| License | MIT |
| Known vuln records | 0 |
| Symbol | Kind | Synopsis |
|---|---|---|
| DateRule | Type | type DateRule struct{} |
| Date | Function | func Date(layout string) DateRule |
| DateRule.Error | Method | func (r DateRule) Error(message string) DateRule |
| DateRule.ErrorObject | Method | func (r DateRule) ErrorObject(err Error) 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.RangeErrorObject | Method | func (r DateRule) RangeErrorObject(err Error) 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 |
Package validator implements value validations for structs and individual fields based on tags.
Package govalidator is package of validators and sanitizers for strings, structs and collections.
Package validate is a generic go data validate, filtering library.
Generate message validators from .proto annotations.
Package validation provides methods for validating parameter value using reflection.
Package validator implements value validations for structs and individual fields based on tags.
Package govalidator is package of validators and sanitizers for strings, structs and collections.
Package validate is a generic go data validate, filtering library.
Generate message validators from .proto annotations.
Package validation provides methods for validating parameter value using reflection.