diagrams

package
v0.132.2 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2024 License: Apache-2.0 Imports: 9 Imported by: 2

Documentation

Overview

Package diagrams provides template functions for generating diagrams.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Namespace added in v0.108.0

type Namespace struct {
	// contains filtered or unexported fields
}

Namespace provides template functions for the diagrams namespace.

func (*Namespace) Goat added in v0.108.0

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
}

Jump to

Keyboard shortcuts

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