package
module
Version:
v0.0.0-...-df6d96c
Opens a new window with list of versions in this module.
Published: Mar 2, 2020
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
gvalidator
Extension to validator to include some extra validations.
Types
GValidator
: Wraps Validator.
Methods
New
: Generates a new GValidator.
GValidator.Init
: Registers the custom validations.
GValidator.Validate
: Uses the extended validator to run validations on the provided input.
Testing
make test
Documentation
¶
type GValidator struct {
Validator *validator.Validate
}
GValidator run validations.
New will create a new GValidator instance.
Init will initialize validation.
Validate will validate the input.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.