Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DateMustBeAfterError = ValidationError.Wrap("the :attribute must be after :date, :input given")
View Source
var DateMustBeAfterOrEqualError = ValidationError.Wrap("the :attribute must be after or equal to :date, :input given")
View Source
var DateMustBeBeforeError = ValidationError.Wrap("the :attribute must be before :date, :input given")
View Source
var DateMustBeBeforeOrEqualError = ValidationError.Wrap("the :attribute must be before or equal to :date, :input given")
View Source
var DateMustBeEqualError = ValidationError.Wrap("the :attribute must be equal to :date, :input given")
View Source
var DateNotValidFormatError = ValidationError.Wrap("the :attribute is not a valid date (example :example), :input given")
View Source
var IsRequiredError = ValidationError.Wrap("the :attribute is required")
View Source
var MayNotBeGreaterThanError = ValidationError.Wrap("the :attribute may not be greater than :expect, :input given")
View Source
var MayNotHaveMoreThanItemsError = ValidationError.Wrap("the :attribute may not have more than :expect items, :input items given")
View Source
var MuseBeABooleanError = ValidationError.Wrap("the :attribute must be a boolean, :input given")
View Source
var MuseEndWithError = ValidationError.Wrap("the :attribute must end with :expect, :input given")
View Source
var MuseStartWithError = ValidationError.Wrap("the :attribute must start with :expect, :input given")
View Source
var MustBeAMapError = ValidationError.Wrap("the :attribute must be a map")
View Source
var MustBeASliceError = ValidationError.Wrap("the :attribute must be a slice")
View Source
var MustBeAStringError = ValidationError.Wrap("the :attribute must be a string")
View Source
var MustBeAcceptedError = ValidationError.Wrap("the :attribute must be accepted")
View Source
var MustBeAnIntegerError = ValidationError.Wrap("the :attribute must be an integer")
View Source
var MustBeAtLeastThanError = ValidationError.Wrap("the :attribute must be at least :expect, :input given")
View Source
var MustBeAtLeastThanItemsError = ValidationError.Wrap("the :attribute must be at least :expect items, :input items given")
View Source
var MustBeContainItemsError = ValidationError.Wrap("the :attribute must contain :expect items, :input items given")
View Source
var MustBeError = ValidationError.Wrap("the :attribute must be :expect, :input given")
View Source
var MustBePresentError = ValidationError.Wrap("the :attribute must be present")
View Source
var MustHaveAValueError = ValidationError.Wrap("the :attribute field must have a value")
View Source
var OptionDateIsRequiredError = errors.New("option Date is required")
System Error
View Source
var OptionWithIsRequiredError = errors.New("option With is required")
View Source
var SelectedIsInvalidError = ValidationError.Wrap("the selected :attribute is invalid")
View Source
var ValidationError = errors.New("").Status(net.StatusUnprocessableEntity).Level(log_level.INFO)
Validation Error
Functions ¶
This section is empty.
Types ¶
type AfterOrEqual ¶
type BeforeOrEqual ¶
type IntegerAble ¶
type IntegerAble struct{}
Click to show internal directories.
Click to hide internal directories.