Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InsertUserProfile ¶
func InsertUserProfile(profile *UserProfile) error
InsertUserProfile insert a new record.
Types ¶
type UserProfile ¶
type UserProfile struct { ID uint64 `gorm:"column:id;primaryKey:autoIncrement"` Username string `gorm:"column:username"` Email string `gorm:"column:email"` }
UserProfile user profile table
func GetUserProfiles ¶
func GetUserProfiles() ([]*UserProfile, error)
GetUserProfiles get all user profiles.
func (UserProfile) TableName ¶
func (UserProfile) TableName() string
TableName returns the table name.
Click to show internal directories.
Click to hide internal directories.