package
Version:
v0.0.0-...-e46c3b8
Opens a new window with list of versions in this module.
Published: Mar 13, 2021
License: GPL-2.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func RegisterPasswordValidator(validate *validator.Validate)
RegisterPasswordValidator registers validator for password.
type Auth struct {
Email string `json:"email" validate:"required,email"`
Password string `json:"password" validate:"min=8,max=32,password"`
}
Auth represents authentication data.
type User struct {
Name string `json:"name" validate:"min=3,max=64"`
Email string `json:"email" validate:"required,email"`
Password string `json:"password" validate:"min=8,max=32,password"`
}
User represents the user data.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.