Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Vali *validator.Validate
Functions ¶
This section is empty.
Types ¶
type UserValidator ¶
type UserValidator struct { Username string `validate:"required"` Password string `validate:"required,min=8"` Email string `validate:"required,email"` }
func (*UserValidator) Done ¶
func (v *UserValidator) Done()
func (*UserValidator) From ¶
func (v *UserValidator) From(u *models.User)
Click to show internal directories.
Click to hide internal directories.