database

package
v0.0.0-...-53bdc36 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Database

type Database struct {
	Products []types.Product `json:"products"`
	Recipes  []types.Recipe  `json:"recipes"`
}

func (*Database) GetProduct

func (db *Database) GetProduct(barcode string) types.Product

func (*Database) GetRecipe

func (db *Database) GetRecipe(id int) types.Recipe

func (*Database) Open

func (db *Database) Open() error

func (*Database) Save

func (db *Database) Save() error

Jump to

Keyboard shortcuts

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