table

package
v1.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 16, 2018 License: LGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Hero

type Hero struct {
	ID   int `gorm:"primary_key"`
	Name string
}

Hero hero struct

func (Hero) TableName

func (Hero) TableName() string

TableName Set table name

type User

type User struct {
	gorm.Model
	Usercode string `gorm:"not null;unique"`
	Password string
	Username string
	Email    string
	Mobile   uint
	Address  string
}

User user struct

func (User) TableName

func (User) TableName() string

TableName Set table name

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL