code

package
v0.10.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 17, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package code contains a list of unique, short, and semantic violation codes. They can be used to programmatically test for specific violation. All code values are protected by backward compatibility rules.

Index

Constants

View Source
const (
	Blank             = "blank"
	CountExact        = "countExact"
	CountTooFew       = "countTooFew"
	CountTooMany      = "countTooMany"
	Equal             = "equal"
	False             = "false"
	InvalidEAN13      = "invalidEAN13"
	InvalidEAN8       = "invalidEAN8"
	InvalidEmail      = "invalidEmail"
	InvalidHostname   = "invalidHostname"
	InvalidIP         = "invalidIP"
	InvalidJSON       = "invalidJSON"
	InvalidUPCA       = "invalidUPCA"
	InvalidUPCE       = "invalidUPCE"
	InvalidURL        = "invalidURL"
	LengthExact       = "lengthExact"
	LengthTooFew      = "lengthTooFew"
	LengthTooMany     = "lengthTooMany"
	MatchingFailed    = "matchingFailed"
	Nil               = "nil"
	NoSuchChoice      = "noSuchChoice"
	NotBlank          = "notBlank"
	NotEqual          = "notEqual"
	NotInRange        = "notInRange"
	NotInteger        = "notInteger"
	NotNegative       = "notNegative"
	NotNegativeOrZero = "notNegativeOrZero"
	NotNil            = "notNil"
	NotNumeric        = "notNumeric"
	NotPositive       = "notPositive"
	NotPositiveOrZero = "notPositiveOrZero"
	NotUnique         = "notUnique"
	NotValid          = "notValid"
	ProhibitedIP      = "prohibitedIP"
	TooEarly          = "tooEarly"
	TooEarlyOrEqual   = "tooEarlyOrEqual"
	TooHigh           = "tooHigh"
	TooHighOrEqual    = "tooHighOrEqual"
	TooLate           = "tooLate"
	TooLateOrEqual    = "tooLateOrEqual"
	TooLow            = "tooLow"
	TooLowOrEqual     = "tooLowOrEqual"
	True              = "true"
)

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL