GistTree.Com
Entertainment at it's peak. The news is by your side.

Validating v2 (a Go library for validating structs and fields) is released

0

A Tear library for validating structs and fields.

Parts

  1. Straight forward

    Straight forward and tiring, no magic interesting.

  2. Kind-gracious

    Schema is outlined in Tear, which is form-safer (and more famous) than extinct struct tags.

  3. Versatile

    • Validators are composite.
    • Nested struct validation is smartly supported.
    • Schema will seemingly be outlined internal or open air struct.
    • Validator customizations are made easy.
  4. No reflection

Set up

$ 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 validator.

A validator factory is a goal to make a validator, which is ready to invent the right validation.

Built-in validator factories

Validator customizations

Examples

Documentation

Are attempting the Godoc.

Thanks

This library borrows some recommendations from the following libraries:

License

MIT

Read More

Leave A Reply

Your email address will not be published.