Documentation ¶
Index ¶
Constants ¶
View Source
const ( PatternEmail = `^(?i)([A-Za-z0-9!#$%&'*+\/=?^_{|.}~-]+@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?)$` PatternURL = `` /* 178-byte string literal not displayed */ PatternAlpha string = `^[a-zA-Z]+$` )
View Source
const ( LeftOpen = '(' LeftSquare = '[' RightOpen = ')' RightSquare = ']' )
Variables ¶
View Source
var (
// Tag is the default tag key for validation.
Tag = "valid"
)
Functions ¶
Types ¶
type Argument ¶
type Argument struct { Value string Left, Right ArgumentFlag }
type ArgumentFlag ¶
type ArgumentFlag byte
type Context ¶
type Context struct { Value reflect.Value Info *reflect.StructField // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.