demo

package
v0.9.11 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateModels

func CreateModels(db_ *db.DB)

func Run

func Run()

Types

type Car

type Car struct {
	ID    uint   `json:"id"`
	Model string `json:"model"`
	Color string `json:"color"`
	City  string `json:"city"`
}

func Create

func Create(db_ *db.DB, carStr string) *Car

func (Car) Create

func (car Car) Create(db_ *db.DB, carStr string) db.Model

func (Car) Id

func (car Car) Id() uint

func (*Car) Save

func (car *Car) Save(bct *bucket.Bucket) error

Jump to

Keyboard shortcuts

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