Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Validate = validator.New(validator.WithRequiredStructEnabled()) Trans ut.Translator )
View Source
var MaxOneSpaceValidator = func(fl validator.FieldLevel) bool { for _, key := range fl.Field().MapKeys() { if strings.Count(key.String(), " ") > 1 { return false } } return true }
MaxOneSpaceValidator validates that a string field contains at most one optional space character
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.