dot

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DotToImage

func DotToImage(outfname string, format string, dot []byte) (string, error)

Types

type DotAttrs

type DotAttrs map[string]string

==[ type def/func: DotAttrs ]===============================================

func (DotAttrs) Lines

func (p DotAttrs) Lines() string

func (DotAttrs) List

func (p DotAttrs) List() []string

func (DotAttrs) String

func (p DotAttrs) String() string

type DotCluster

type DotCluster struct {
	ID       string
	Clusters map[string]*DotCluster
	Nodes    []*DotNode
	Attrs    DotAttrs
	Prefix   string
}

==[ type def/func: DotCluster ]===============================================

func NewDotCluster

func NewDotCluster(id string) *DotCluster

func (*DotCluster) String

func (c *DotCluster) String() string

type DotEdge

type DotEdge struct {
	From  *DotNode
	To    *DotNode
	Attrs DotAttrs
}

==[ type def/func: DotEdge ]===============================================

type DotGraph

type DotGraph struct {
	Title    string
	Attrs    DotAttrs
	Clusters []*DotCluster
	Nodes    []*DotNode
	Edges    []*DotEdge
	Options  map[string]string
}

==[ type def/func: DotGraph ]===============================================

func (*DotGraph) ShowDot

func (g *DotGraph) ShowDot()

func (*DotGraph) WriteDot

func (g *DotGraph) WriteDot(w io.Writer) error

type DotNode

type DotNode struct {
	ID    string
	Attrs DotAttrs
}

==[ type def/func: DotNode ]===============================================

func (*DotNode) String

func (n *DotNode) String() string

Jump to

Keyboard shortcuts

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