dot

package
v0.0.0-...-27647ab Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2023 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Open

func Open(ctx context.Context, gv string) error

func Render

func Render(w iou.DiscardStringWriter, o any)

func RenderString

func RenderString(o any) string

Types

type Attrs

type Attrs struct {
	Attrs map[string]Value
	// contains filtered or unexported fields
}

func AsAttrs

func AsAttrs(o any) Attrs

func (*Attrs) Set

func (a *Attrs) Set(k string, v any) *Attrs

type Cell

type Cell struct {
	Value Value
	// contains filtered or unexported fields
}

func AsCell

func AsCell(o any) Cell

type Edge

type Edge struct {
	Left  Id
	Right Id

	Attrs Attrs
	// contains filtered or unexported fields
}

func NewEdge

func NewEdge(left, right any) Edge

func (Edge) SetAttr

func (e Edge) SetAttr(k string, v any) Edge

type Graph

type Graph struct {
	Stmts []Stmt

	Id Id
}

type Id

type Id struct {
	Id string
	// contains filtered or unexported fields
}

func AsId

func AsId(o any) Id

type Item

type Item interface {
	// contains filtered or unexported methods
}

type Node

type Node struct {
	Id Id

	Attrs Attrs
	// contains filtered or unexported fields
}

func NewNode

func NewNode(id any) Node

func (Node) SetAttr

func (n Node) SetAttr(k string, v any) Node

type Raw

type Raw struct {
	Raw string
	// contains filtered or unexported fields
}

func AsRaw

func AsRaw(o any) Raw

type RawStmt

type RawStmt struct {
	Raw string
	// contains filtered or unexported fields
}

func AsRawStmt

func AsRawStmt(o any) RawStmt

type Row

type Row struct {
	Cells []Cell
	// contains filtered or unexported fields
}

func AsRow

func AsRow(o any) Row

type Stmt

type Stmt interface {
	// contains filtered or unexported methods
}

type Table

type Table struct {
	Rows []Row
	// contains filtered or unexported fields
}

func AsTable

func AsTable(o any) Table

type Text

type Text struct {
	Text string
	// contains filtered or unexported fields
}

func AsText

func AsText(o any) Text

type Value

type Value interface {
	Item
	// contains filtered or unexported methods
}

func AsValue

func AsValue(o any) Value

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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