Documentation ¶
Index ¶
- func Recipe(name string, from_scratch []string, folder string) (recipes []recipe.Recipe, ingredients []recipe.Ingredient, graphviz string, ...)
- type RecipeGraph
- func (r *RecipeGraph) AddEdge(from, to string)
- func (r *RecipeGraph) AddNode(ingredient recipe.Ingredient)
- func (r *RecipeGraph) AddRecipe(name string) (err error)
- func (r *RecipeGraph) Graphviz() string
- func (r *RecipeGraph) Ingredients() (ingredients []recipe.Ingredient, err error)
- func (r *RecipeGraph) NodeName(i int64) string
- func (r *RecipeGraph) NodeNumber(name string) int64
- func (r *RecipeGraph) RecipeOrdering() (recipes []recipe.Recipe)
- func (r *RecipeGraph) Recipes() (recipes []recipe.Recipe)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type RecipeGraph ¶
type RecipeGraph struct { Nodes map[string]recipe.Ingredient // contains filtered or unexported fields }
func NewRecipeGraph ¶
func NewRecipeGraph() *RecipeGraph
func (*RecipeGraph) AddEdge ¶
func (r *RecipeGraph) AddEdge(from, to string)
func (*RecipeGraph) AddNode ¶
func (r *RecipeGraph) AddNode(ingredient recipe.Ingredient)
func (*RecipeGraph) AddRecipe ¶
func (r *RecipeGraph) AddRecipe(name string) (err error)
func (*RecipeGraph) Graphviz ¶
func (r *RecipeGraph) Graphviz() string
func (*RecipeGraph) Ingredients ¶
func (r *RecipeGraph) Ingredients() (ingredients []recipe.Ingredient, err error)
func (*RecipeGraph) NodeName ¶
func (r *RecipeGraph) NodeName(i int64) string
func (*RecipeGraph) NodeNumber ¶
func (r *RecipeGraph) NodeNumber(name string) int64
func (*RecipeGraph) RecipeOrdering ¶
func (r *RecipeGraph) RecipeOrdering() (recipes []recipe.Recipe)
func (*RecipeGraph) Recipes ¶
func (r *RecipeGraph) Recipes() (recipes []recipe.Recipe)
Click to show internal directories.
Click to hide internal directories.