Documentation ¶ Index ¶ Variables func Connect() type User Constants ¶ This section is empty. Variables ¶ View Source var DB *gorm.DB Functions ¶ func Connect ¶ func Connect() Types ¶ type User ¶ type User struct { ID uint `json:"id" gorm:"primary_key;auto_increment;not_null"` Name string `json:"name"` Email string `json:"email"` Age uint8 `json:"age"` } Source Files ¶ View all Source files User.go index.go Click to show internal directories. Click to hide internal directories.