package
Version:
v0.0.0-...-bd503fb
Opens a new window with list of versions in this module.
Published: Jul 12, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type ValidationRule struct {
Validate string
Translator string
}
type Validator struct {
Validate *validator.Validate
Translator ut.Translator
}
New creates and returns a new validator
TODO: needs to be more dynamic as the hardcoded validations at the bottom are not ideal.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.