package
Version:
v0.0.0-...-6e899b3
Opens a new window with list of versions in this module.
Published: Mar 29, 2020
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type User struct {
gorm.Model
Name string `gorm:"size:20;not null"`
Email string `gorm:"size:100;not null"`
Age int `gorm:"type:smallint"`
}
type UserRepository struct {
Conn *gorm.DB
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.