package
Version:
v0.0.0-...-d99cf4a
Opens a new window with list of versions in this module.
Published: Jun 6, 2021
License: GPL-3.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func Instance() *validator.Validate
type Error struct {
ErrorName string `json:"error"`
Param string `json:"param"`
Message string `json:"message"`
Value interface{} `json:"value"`
}
func Val(validate *validator.Validate, fields ...Field) (errors []Error)
Val returns errors
type Field struct {
Param string
Message string
Value interface{}
OtherValue interface{}
Tag string
OmitParamValue bool
}
Field stores error details
Source Files
¶
Click to show internal directories.
Click to hide internal directories.