# Functions
NewFailedResult generates a ValidationResult instance as failed validation with given error message.
NewResult generates a ValidationResult instance with given values.
NewSuccessResult generates a ValidationResult instance as a success result.
# Structs
After checks the field under validation be a value after the value of given field.
AfterOrEqual checks the field under validation be a value after or equal to the value of given field.
Alpha checks the field under validation be entirely alphabetic characters.
AlphaDash checks the field under validation has alphanumeric characters, as well as dashes and underscore.
AlphaNum checks the field under validation has alphanumeric characters.
AlphaSpace checks the field under validation have alphabetic characters and spaces.
Array checks the field under validation is an array or slice.
Before checks the field under validation be a value before the value of given field.
BeforeOrEqual checks the field under validation be a value before or equal to the value of given field.
Between checks the field under validation have a value or a length between the given min and max parameters.
Boolean checks the field under validation is boolean or can be cast as a boolean value.
DateTime checks the field under validation be a valid datetime string, and it is castable to time.Time.
DateTimeFormat checks the field under validation be a valid datetime string and match the given format.
Different checks the field under validation has different value than the given field.
Digits checks the field under validation has an exact length digits.
DigitsBetween checks the field under validation has length between given min and max.
Email checks the field under validation is a valid email address based on RFC 53222.
EndsWith check the field under validation ends with given sub string.
GreaterThan checks the field under validation has a value or a length greater than the given value.
GreaterThanEqual checks the field under validation has a value or a length greater than or equal to the given value.
In checks the field under validation be in one of given values.
Integer checks the field under validation has a integer value
Usage: "integer".
Length checks the field under validation have exact given length.
LessThan checks the field under validation has a value or a length less than the given value.
LessThanEqual checks the field under validation has a value or a length less than the given value.
Lowercase checks the field under validation be lowercase string.
Max checks the field under validation value be less than given value.
MaxDigits checks the field under validation has length less than given max digits.
MaxLength checks the field under validation length did not reach given length.
Min checks the field under validation value be greater than given value.
MinDigits checks the field under validation has length more than given min digits.
MinLength checks the field under validation length be greater than given length.
NotEmpty checks the field under validation be a non-empty or non-zero value.
NotEqual checks the field under validation is not equal to given value.
NotIn checks the field under validation not be in one of given values.
NotRegex checks the field under validation does not match the given regex pattern.
Numeric checks the field under validation has a numeric value.
Regex check the field under validation match the given regex pattern.
Required checks the field under validation exists.
RequiredIf check the field under validation exists if the given condition is true.
RequiredUnless check the field under validation exists unless the given condition is true.
RequiredWith check the field under validation exists if any of given fields exist.
RequiredWithAll check the field under validation exists if all given fields exist.
RequiredWithout check the field under validation exists if any of given fields doesn't exist.
RequiredWithoutAll check the field under validation exists if all given fields not exist.
SameAs check the field under validation has the value same as the other given field.
StartsWith check the field under validation starts with given sub string.
String checks the field under validation has a string value
Usage: "string".
Uppercase checks the field under validation be uppercase string.
UUID checks field under validation is a valid uuid.
ValidationResult is a struct represents a single validation result.
# Interfaces
Rule is an interface for rules.
RuleWithParams is an interface for rules that have parameters.