Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrintRecipes ¶
func PrintRecipes(recipes []Recipe)
Types ¶
type Ingredient ¶
type Recipe ¶
type Recipe struct { Name string `yaml:"Name"` Ingredients []Ingredient `yaml:"Ingredients"` MealTypes []string `yaml:"MealTypes"` }
func GetRecipes ¶
func GetRecipes() []Recipe
GetRecipes is a simple wrapper func in case I ever change to a database backend in the future
func PickRandomRecipe ¶
func PickRecipeByIngredient ¶
PickRecipeByIngredient does assume that ingredientQuery is not a blank string
func (Recipe) PrintRecipe ¶
func (recipe Recipe) PrintRecipe()
Click to show internal directories.
Click to hide internal directories.