Documentation ¶ Index ¶ func GetDatabase() *gorm.DB func Initialize() (*gorm.DB, error) type User Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func GetDatabase ¶ func GetDatabase() *gorm.DB Get database func Initialize ¶ func Initialize() (*gorm.DB, error) Initialize database Types ¶ type User ¶ type User struct { Id uint `gorm:"primary_key;AUTO_INCREMENT" json:"id"` Name string `gorm:"size:32" json:"name"` Email string `gorm:"size:255" json:"email"` } Source Files ¶ View all Source files database.go user.go Click to show internal directories. Click to hide internal directories.