Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Namespace ¶
type Namespace struct { }
Namespace provides template functions for the diagrams namespace.
func New ¶
func New() *Namespace
New returns a new instance of the lang-namespaced template functions.
func (*Namespace) Goat ¶
func (d *Namespace) Goat(v any) SVGDiagram
Goat creates a new SVG diagram from input v.
type SVGDiagram ¶
type SVGDiagram interface { // Wrapped returns the diagram as an SVG, including the <svg> container. Wrapped() template.HTML // Inner returns the inner markup of the SVG. // This allows for the <svg> container to be created manually. Inner() template.HTML // Width returns the width of the SVG. Width() int // Height returns the height of the SVG. Height() int }
Click to show internal directories.
Click to hide internal directories.