Versions in this module Expand all Collapse all v0 v0.0.1 Nov 21, 2021 Changes in this version + type Collection struct + func LoadCollection(file string) (*Collection, error) + func NewCollection() *Collection + func (c *Collection) Add(r ...Recipe) + func (c *Collection) Export(dest string) error + func (c *Collection) Get(rm ...RecipeMatcher) + func (c *Collection) LoadRecipes(file ...string) error + func (c *Collection) Remove(rs ...Recipe) + type Recipe struct + Categories []string + CookTime string + Created string + Description string + Difficulty string + Directions string + Hash string + ImageURL string + Ingredients string + Name string + Notes string + NutritionalInfo string + Photo string + PhotoData string + PhotoHash string + PhotoLarge string + PrepTime string + Rating int + Servings string + Source string + SourceURL string + TotalTime string + UID string + func NewRecipe(name, ingredients, directions string) *Recipe + func (r *Recipe) SetImage(path string) error + func (r *Recipe) SetImageURL(url string) error + type RecipeMatcher func(*Recipe) bool + func HasCategory(category string) RecipeMatcher + func HasIngredient(ingredient string) RecipeMatcher + func NameContains(name string) RecipeMatcher