recurse

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

func Recipe

func Recipe(name string, from_scratch []string, folder string) (recipes []recipe.Recipe, ingredients []recipe.Ingredient, graphviz string, err error)

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)

Jump to

Keyboard shortcuts

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