Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitValidatorConfig ¶
func InitValidatorConfig(filename string)
Types ¶
type ValidatorConf ¶
type ValidatorConf struct { Name string `json:",optional"` MinLength int64 `json:",optional"` MaxLength int64 `json:",optional"` Pattern string `json:",optional"` ErrTemplate string `json:",optional"` }
func GetValidatorByFormat ¶
func GetValidatorByFormat(format string) *ValidatorConf
Click to show internal directories.
Click to hide internal directories.