Documentation ¶ Index ¶ func WriteGraph(w io.Writer, g Graph) error type Attrs func (p Attrs) Lines() string func (p Attrs) List() []string func (p Attrs) String() string type Cluster func (c *Cluster) String() string type Edge func (e *Edge) String() string type Graph type Node func (n *Node) String() string type Rank func (r *Rank) List() []string func (r *Rank) String() string Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func WriteGraph ¶ func WriteGraph(w io.Writer, g Graph) error Types ¶ type Attrs ¶ type Attrs map[string]string func (Attrs) Lines ¶ func (p Attrs) Lines() string func (Attrs) List ¶ func (p Attrs) List() []string func (Attrs) String ¶ func (p Attrs) String() string type Cluster ¶ type Cluster struct { ID string Clusters map[string]*Cluster Nodes []*Node Attrs Attrs } func (*Cluster) String ¶ func (c *Cluster) String() string type Edge ¶ type Edge struct { From string To string Attrs Attrs } func (*Edge) String ¶ func (e *Edge) String() string type Graph ¶ type Graph struct { Title string Attrs Attrs Clusters map[string]*Cluster Nodes []*Node Edges []*Edge Options map[string]string Ranks []*Rank } type Node ¶ type Node struct { ID string Attrs Attrs } func (*Node) String ¶ func (n *Node) String() string type Rank ¶ type Rank struct { Name string Nodes []string } func (*Rank) List ¶ func (r *Rank) List() []string func (*Rank) String ¶ func (r *Rank) String() string Source Files ¶ View all Source files dot.go Click to show internal directories. Click to hide internal directories.