Models

package
v0.0.0-...-5bf27ac Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2022 License: CC0-1.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddNewProduct

func AddNewProduct(b *Product) (err error)

func GetAllProduct

func GetAllProduct(b *[]Product) (err error)

func GetOneProduct

func GetOneProduct(b *Product, id string) (err error)

Types

type Product

type Product struct {
	gorm.Model
	Name  string `json:"name"`
	Price string `json:"price"`
}

func (*Product) TableName

func (b *Product) TableName() string

Jump to

Keyboard shortcuts

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