model

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type User

type User struct {
	gorm.Model

	UUID       uuid.UUID
	Name       string
	Instrument string `gorm:"type:varchar(16)"`
	Age        uint
	Candies    int
	BirthDate  time.Time
	Fun        bool
	Money      float32
	Bitcoins   float64
	Toys       int64
	End        int
}

User is the model for test

func GetDefaultData

func GetDefaultData() []User

GetDefaultData returns data to populate table

Jump to

Keyboard shortcuts

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