Documentation
¶
Overview ¶
Package d2 provides server-side helpers for compiling D2 diagrams into SVG.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrEmptyDiagram is returned when the supplied diagram body is empty. ErrEmptyDiagram = errors.New("empty d2 diagram") )
Functions ¶
This section is empty.
Types ¶
type Renderer ¶
type Renderer struct {
// contains filtered or unexported fields
}
Renderer performs server-side D2 compilation using the embedded D2 compiler. Layout choices are left entirely to the source diagram (via D2 config blocks) or environment variables such as D2_LAYOUT.
Click to show internal directories.
Click to hide internal directories.