Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ErrorFields ¶
type TimeValidator ¶
type TimeValidator struct { Field string RawValue string Layout string // contains filtered or unexported fields }
func NewTimeValidator ¶
func NewTimeValidator(field, value, layout string) *TimeValidator
func (*TimeValidator) Validate ¶
func (v *TimeValidator) Validate() error
func (*TimeValidator) Value ¶
func (v *TimeValidator) Value() time.Time
type ValidationError ¶
type ValidationError struct {
Fields ErrorFields
}
func (ValidationError) Error ¶
func (e ValidationError) Error() string
type Validator ¶
type Validator interface {
Validate() error
}
func ChainValidator ¶
func StructValidator ¶
func StructValidator(s interface{}) Validator
func UUIDValidator ¶
Click to show internal directories.
Click to hide internal directories.