package
Version:
v0.0.0-...-515cb47
Opens a new window with list of versions in this module.
Published: Aug 17, 2021
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
¶
func SaveOneUser(data interface{}) error
type User struct {
gorm.Model
Username string `gorm:"column:username;unique_index"`
Email string `gorm:"column:email;unique_index"`
PasswordHash string `gorm:"column:password;notNull"`
IsAdmin bool `gorm:"column:admin"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.