Documentation ¶ Index ¶ type User func (User) TableName() string Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type User ¶ type User struct { // xorm定义的字段属性,要用空格隔开 Id uint `gorm:"primary_key" xorm:"pk autoincr"` Name string `gorm:"type:varchar(200)" xorm:"varchar(200)"` Age int `xorm:"tinyint(3)"` } User user. func (User) TableName ¶ func (User) TableName() string TableName table name. Source Files ¶ View all Source files user.go Click to show internal directories. Click to hide internal directories.