recipe

package
v0.0.0-...-8af2395 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const CategorySep string = "###"

CategorySep delineates betweeen categories

View Source
const IDprefix string = "ID-"

IDprefix ID- which predeces every ID number

View Source
const IDsep string = "-"

IDsep is what separates id values

View Source
const IngredientSep string = ","

IngredientSep denotes the end of ingredient and start of measurement

View Source
const Ingredients string = "Ingredients"

Ingredients name of ingredients column

View Source
const MeasurementSep string = ";"

MeasurementSep denotes the end of ingredient and start of measurement

View Source
const QuantitySep string = "/"

QuantitySep denotes separation between measurement quant. and type

View Source
const RecipeName string = "Recipe Name"

Recipe Name: name of Recipe Name column

Variables

This section is empty.

Functions

func AddIngredientsToList

func AddIngredientsToList(ingredients []string, units *unitConversions, groceryMap map[string][]string)

func GetHeaders

func GetHeaders(respValues [][]interface{}) map[string]map[string][2]int

func GetIngredients

func GetIngredients(respValues [][]interface{}, recipeID string, headersMap map[string]map[string][2]int) []string

func GetRecipeNames

func GetRecipeNames(respValues [][]interface{}, rl []string, headers map[string]map[string][2]int) []string

func LoadUnitConversions

func LoadUnitConversions() *unitConversions

func SaveListToFile

func SaveListToFile(path string, groceryMap map[string][]string, recipeNames []string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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