Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrValueRequired = errors.New("value required") ErrValueUnexpected = errors.New("unexpected value") ErrDeprecated = errors.New("deprecated parameter") ErrWrongSignatureMethod = errors.New("wrong signature method") ErrNoMatch = errors.New("no matches") ErrBadSyntax = errors.New("bad syntax") ErrSkip = errors.New("skip") )
Errors
Functions ¶
Types ¶
type Checker ¶
type Checker interface {
Check() error
}
Checker is the interface that wraps the basic Check method.
type ErrorCheck ¶
type ErrorCheck struct {
// contains filtered or unexported fields
}
ErrorCheck check
func (ErrorCheck) Error ¶
func (e ErrorCheck) Error() string
type ErrorCheckResult ¶
type ErrorCheckResult struct {
ErrorCheck
FieldName string
Value interface{}
}
ErrorCheckResult implements concrete check result
func (ErrorCheckResult) Error ¶
func (e ErrorCheckResult) Error() string
type SimpeChecker ¶
type SimpeChecker struct {
// contains filtered or unexported fields
}
SimpeChecker implements simple checks: required, expect, deprecated
Click to show internal directories.
Click to hide internal directories.
