graph

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2023 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Show

func Show(node *Node) *gographviz.Graph

Types

type Child

type Child struct {
	Name string
	Node *Node
}

type Field

type Field struct {
	Name, Value string
}

type Node

type Node struct {
	Name     string
	Fields   []Field
	Children []Child
}

func NewNode

func NewNode(name string) *Node

func (*Node) AddChild

func (n *Node) AddChild(name string, node *Node)

func (*Node) AddField

func (n *Node) AddField(name, value string)

type Visualizer

type Visualizer interface {
	Visualize() *Node
}

Jump to

Keyboard shortcuts

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