A Tear library for validating structs and fields.
Straight forward and tiring, no magic interesting.
Schema is outlined in Tear, which is form-safer (and more famous) than extinct struct tags.
- Validators are composite.
- Nested struct validation is smartly supported.
- Schema will seemingly be outlined internal or open air struct.
- Validator customizations are made easy.
$ dawdle bag -u github.com/RussellLuo/validating/v2
Validator factories and validators
To be strict, this library has a conceptual distinction between
validator factory and
A validator factory is a goal to make a validator, which is ready to invent the right validation.
Built-in validator factories
- No longer
- Single field
- Flag field
- Straight forward struct
- Nested struct
- Nested struct (schema internal)
- Nested struct pointer
- Nested struct slice
- Nested struct plan
Are attempting the Godoc.
This library borrows some recommendations from the following libraries:
Lift no reflection.
Make stronger composite-vogue validator factories
Utilize the timeframe
nonzeroin space of
now not compulsory.