Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type User ¶
type User struct { ID int `json:"id"` Username string `json:"username" gorm:"not null" binding:"required" validate:"min=1,max=32"` Password string `json:"password" gorm:"not null" binding:"required" validate:"min=8,max=128"` }
User represents a registered user.
Click to show internal directories.
Click to hide internal directories.