Documentation
¶
Index ¶
Constants ¶
View Source
const ( RuleRequired = "required" RuleLen = "len" RuleMax = "max" RuleMin = "min" RuleRegex = "regex" RulePhone = "phone" RuleEmail = "email" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ValidError ¶
valid type
type ValidSliceError ¶ added in v1.2.5
type ValidSliceError struct {
ValidError
// contains filtered or unexported fields
}
func ValidSlice ¶ added in v1.2.5
func ValidSlice(data any) (sliceErrs []ValidSliceError)
Click to show internal directories.
Click to hide internal directories.