Documentation
¶
Overview ¶
Package message contains violation message templates. They are not protected by backward compatibility rules and can be changed at any time, even in patch versions. It is recommended not to use this code directly in your application.
Index ¶
Constants ¶
View Source
const ( // InvalidFileName is the default message for invalid FileName values. InvalidFileName = "This value is not a valid file name." // InvalidFileExtension is the default message for invalid FileExtension values. InvalidFileExtension = "This file extension is not allowed." // InvalidMIMEType is the default message for invalid MIMEType values. InvalidMIMEType = "This MIME type is invalid or not allowed." // InvalidContentType is the default message for invalid ContentType values. InvalidContentType = "This content type is not allowed." // InvalidCountry is the default message for an invalid country value. InvalidCountry = "This value is not a valid country or territory code." // InvalidLanguage is the default message for an invalid language value. InvalidLanguage = "This value is not a valid language code." // InvalidLocale is the default message for an invalid locale value. InvalidLocale = "This value is not a valid locale identifier." // InvalidUTF8 is the default message for malformed UTF-8 input. InvalidUTF8 = "This value is not valid UTF-8." InvalidDate = "This value is not a valid date." InvalidDateTime = "This value is not a valid datetime." InvalidEAN13 = "This value is not a valid EAN-13." InvalidEAN8 = "This value is not a valid EAN-8." InvalidEmail = "This value is not a valid email address." InvalidHostname = "This value is not a valid hostname." InvalidIBAN = "This is not a valid International Bank Account Number (IBAN)." InvalidBIC = "This is not a valid Business Identifier Code (BIC)." BICNotAssociatedWithIBAN = "This Business Identifier Code (BIC) is not associated with IBAN {{ iban }}." InvalidISIN = "This value is not a valid International Securities Identification Number (ISIN)." InvalidISSN = "This value is not a valid ISSN." InvalidISBN = "This value is neither a valid ISBN-10 nor a valid ISBN-13." InvalidISBN10 = "This value is not a valid ISBN-10." InvalidISBN13 = "This value is not a valid ISBN-13." InvalidCurrency = "This value is not a valid currency." InvalidCIDR = "This value is not a valid CIDR notation." CIDRNetmaskOutOfRange = "The value of the netmask should be between {{ min }} and {{ max }}." InvalidIP = "This is not a valid IP address." InvalidJSON = "This value should be valid JSON." InvalidLUHN = "Invalid card number." InvalidMAC = "This value is not a valid MAC address." PasswordTooWeak = "The password strength is too low. Please use a stronger password." InvalidCSSColor = "This value is not a valid CSS color." InvalidCardScheme = "Unsupported card type or invalid card number." InvalidWeekFormat = "This value is not a valid ISO week in YYYY-Www format." InvalidWeekNumber = "Week {{ value }} does not exist in its ISO year." WeekTooEarly = "This value should be on or after week {{ min }}." WeekTooLate = "This value should be on or before week {{ max }}." InvalidTime = "This value is not a valid time." InvalidTimezone = "This value is not a valid timezone." InvalidULID = "This is not a valid ULID." InvalidUPCA = "This value is not a valid UPC-A." InvalidUPCE = "This value is not a valid UPC-E." InvalidURL = "This value is not a valid URL." InvalidUUID = "This is not a valid UUID." IsBlank = "This value should not be blank." IsEqual = "This value should not be equal to {{ comparedValue }}." IsNil = "This value should not be nil." NoSuchChoice = "The value you selected is not a valid choice." NotBlank = "This value should be blank." NotDivisible = "This value should be a multiple of {{ comparedValue }}." NotDivisibleCount = "The number of elements in this collection should be a multiple of {{ divisibleBy }}." NotEqual = "This value should be equal to {{ comparedValue }}." NotExactCount = "This collection should contain exactly {{ limit }} element(s)." NotExactLength = "This value should have exactly {{ limit }} character(s)." NotFalse = "This value should be false." NotInRange = "This value should be between {{ min }} and {{ max }}." NotInteger = "This value is not an integer." NotNegative = "This value should be negative." NotNegativeOrZero = "This value should be either negative or zero." NotNil = "This value should be nil." NotNumeric = "This value is not a numeric." NotPositive = "This value should be positive." NotPositiveOrZero = "This value should be either positive or zero." NotTrue = "This value should be true." NotUnique = "This collection should contain only unique elements." NotValid = "This value is not valid." ProhibitedIP = "This IP address is prohibited to use." ProhibitedURL = "This URL is prohibited to use." TooEarly = "This value should be later than {{ comparedValue }}." TooEarlyOrEqual = "This value should be later than or equal to {{ comparedValue }}." TooFewElements = "This collection should contain {{ limit }} element(s) or more." TooHigh = "This value should be less than {{ comparedValue }}." TooHighOrEqual = "This value should be less than or equal to {{ comparedValue }}." TooLate = "This value should be earlier than {{ comparedValue }}." TooLateOrEqual = "This value should be earlier than or equal to {{ comparedValue }}." TooLong = "This value is too long. It should have {{ limit }} character(s) or less." TooLow = "This value should be greater than {{ comparedValue }}." TooLowOrEqual = "This value should be greater than or equal to {{ comparedValue }}." TooManyElements = "This collection should contain {{ limit }} element(s) or less." TooFewWords = "This value should contain at least {{ limit }} word(s)." TooManyWords = "This value should contain at most {{ limit }} word(s)." TooShort = "This value is too short. It should have {{ limit }} character(s) or more." // NoSuspiciousCharacters (Symfony Validator wording). SuspiciousInvisible = "Using invisible characters is not allowed." SuspiciousMixedNumbers = "Mixing numbers from different scripts is not allowed." SuspiciousHiddenOverlay = "Using hidden overlay characters is not allowed." SuspiciousCharactersRestriction = "This value contains characters that are not allowed by the current restriction level." )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Directories
¶
| Path | Synopsis |
|---|---|
|
english
Package english contains violation message texts translated into English language.
|
Package english contains violation message texts translated into English language. |
|
russian
Package russian contains violation message texts translated into Russian language.
|
Package russian contains violation message texts translated into Russian language. |
Click to show internal directories.
Click to hide internal directories.