Documentation ¶
Index ¶
Constants ¶
View Source
const ( RULE_OLDER_THAN = "older_than" RULE_REQUIRED_IF = "required_if" )
Variables ¶
View Source
var Validate = validator.New()
Functions ¶
func IsMimeTypeValid ¶
func IsNPWPValid ¶
func RequiredIf ¶
func RequiredIf(fl validator.FieldLevel) bool
Types ¶
type ValidationError ¶
func ParseValidationError ¶
func ParseValidationError(errorString string) (*ValidationError, error)
ParseValidationError parses an error string and returns a ValidationError struct.
Click to show internal directories.
Click to hide internal directories.