Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // NotEmpty is a rule implemented NotEmpty = ¬Empty{} // Required is a rule implemented Required = &required{} // Max is a rule implemented Max = &max{} // Min is a rule implemented Min = &min{} // Enum is a rule implemented Enum = &enum{} // MaxBound is a rule implemented MaxBound = &maxBound{} // MinBound is a rule implemented MinBound = &minBound{} )
Functions ¶
This section is empty.
Types ¶
type ErrMaxBound ¶
ErrMaxBound is the representation about any error happened inside of the rule MaxBound
func (*ErrMaxBound) Error ¶
func (err *ErrMaxBound) Error() string
type ErrMinBound ¶
ErrMinBound is the representation about any error happened inside of the rule MinBound
func (*ErrMinBound) Error ¶
func (err *ErrMinBound) Error() string
type ErrNotEmpty ¶ added in v1.1.0
type ErrNotEmpty struct {
Field string
}
ErrNotEmpty is the representation about any error happened inside of the rule NotEmpty
func (*ErrNotEmpty) Error ¶ added in v1.1.0
func (e *ErrNotEmpty) Error() string
type ErrRequired ¶
type ErrRequired struct {
Field string
}
ErrRequired is the representation about any error happened inside of the rule Required
func (*ErrRequired) Error ¶
func (e *ErrRequired) Error() string
Click to show internal directories.
Click to hide internal directories.