recipe

package
v0.0.0-...-b6a5b4f Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Amount

type Amount struct {
	Count float64 `json:"count"`
	Unit  string  `json:"unit"`
}

type Hours

type Hours struct {
	Parallel float64 `json:"parallel"`
	Serial   float64 `json:"serial"`
}

type Ingredient

type Ingredient struct {
	Amount     Amount  `json:"amount"`
	Ingredient string  `json:"ingredient"`
	Singular   string  `json:"singular"`
	StoreCost  float64 `json:"store_cost"`
	Type       string  `json:"type"`
	Color      string  `json:"color"`
	Node       graph.Node
	HasData    bool
}

type Recipe

type Recipe struct {
	Directions     []string     `json:"directions"`
	Hours          Hours        `json:"hours"`
	Inputs         []Ingredient `json:"input"`
	Outputs        []Ingredient `json:"output"`
	Recipe         string       `json:"recipe"`
	RecipePlural   string       `json:"recipe_plural"`
	RecipeSingular string       `json:"recipe_singular"`
	Duration       string
	TotalHours     float64
	InputCost      float64
}

func Parse

func Parse(fname string) (r Recipe, err error)

Jump to

Keyboard shortcuts

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