graph

package
Version: v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2020 License: MIT 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
}

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL