render

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloseGraph

func CloseGraph(g *graphviz.Graphviz, graph *cgraph.Graph)

CloseGraph is used to close the given graph objects.

func OutputAsJson

func OutputAsJson(path string, tree *tree.TreeNode) error

OutputAsJson is used to render a TreeNode to a file in json

func OutputInShell

func OutputInShell(t *tree.TreeNode)

OutputInShell is used to print the content of a treeNode in the shell

func RenderGraph

func RenderGraph(file string, t tree.TreeNode, g *graphviz.Graphviz, graph *cgraph.Graph, format graphviz.Format) error

RenderGraph is used to render a graphic to a file after generating the tree edges. Each node of the given TreeNode will be linked to it's parent node.

func RenderGraphToFile

func RenderGraphToFile(file string, g *graphviz.Graphviz, graph *cgraph.Graph, format graphviz.Format) error

RenderGraphToFile is used to render a graphic to a file.

func RenderOutput

func RenderOutput(file string, format string, t tree.TreeNode, g *graphviz.Graphviz, graph *cgraph.Graph) error

RenderOutput is used to render a tree node depending of the format passed

Types

This section is empty.

Jump to

Keyboard shortcuts

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