Documentation
¶
Index ¶
- func ToInternalErrorList(fldPath *field.Path, err error) field.ErrorList
- func ValidateGT(value, minimum int64, fldPath *field.Path) field.ErrorList
- func ValidateGTE(value, minimum int64, fldPath *field.Path) field.ErrorList
- func ValidateImmutableField(newVal, oldVal interface{}, fldPath *field.Path, msg string) field.ErrorList
- func ValidateLT(value, maximum int64, fldPath *field.Path) field.ErrorList
- func ValidateLTE(value, maximum int64, fldPath *field.Path) field.ErrorList
- func ValidateMaxLength(val string, maxLen int, fldPath *field.Path) field.ErrorList
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ToInternalErrorList ¶
ToInternalErrorList converts an error into an ErrorList with a single InternalError if it is not nil, otherwise returns an empty list.
func ValidateGT ¶
ValidateGT validates the given value must be greater than the minimum value.
func ValidateGTE ¶
ValidateGTE validates the given value must be greater than or equal to the minimum value.
func ValidateImmutableField ¶
func ValidateImmutableField(newVal, oldVal interface{}, fldPath *field.Path, msg string) field.ErrorList
ValidateImmutableField validates the new value and the old value are deeply equal and returns an error with a custom message.
func ValidateLT ¶
ValidateLT validates the given value must be less than the maximum value.
func ValidateLTE ¶
ValidateLTE validates the given value must be less than or equal to the maximum value.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.