go-gopkg-in-go-playground-validator-v9 9.31.0
Validator for structs and individual fields based on tags
This package implements value validations for structs and individual fields based on tags. It has the following unique features:
Cross Field and Cross Struct validations by using validation tags or custom validators
Slice, Array and Map diving, which allows any or all levels of a multidimensional field to be validated
Ability to dive into both map keys and values for validation
Handles type interface by determining it's underlying type prior to validation
Handles custom field types such as sql driver Valuer
Alias validation tags, which allows for mapping of several validations to a single tag for easier defining of validations on structs
Extraction of custom defined Field Name e.g. can specify to extract the JSON name while validating and have it available in the resulting FieldError
Customizable i18n aware error messages.
Default validator for the gin web framework
- Website: https://gopkg.in/go-playground/validator.v9
- Licenses: Expat
- Package source: gnu/packages/golang.scm
- Builds: See build status
- Issues: See known issues
Installation
Install go-gopkg-in-go-playground-validator-v9 9.31.0
as follows:
guix install go-gopkg-in-go-playground-validator-v9@9.31.0
Or install the latest version:
guix install go-gopkg-in-go-playground-validator-v9
You can also install packages in augmented, pure or containerized environments for development or simply to try them out without polluting your user profile. See the guix shell
documentation for more information.