Documentation ¶ Index ¶ type User Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type User ¶ type User struct { gorm.Model ID int `gorm:"primaryKey"` Name string `gorm:"not null; index"` Email string `gorm:"not null; check:,email ~* '^[A-Za-z0-9._%-]+@[A-Za-z0-9.-]+[.][A-Za-z]+$'"` Birthday sql.NullTime } Source Files ¶ View all Source files user.go Click to show internal directories. Click to hide internal directories.