dot

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindExecutable

func FindExecutable(dotPath string) (string, error)

FindExecutable returns the path to the dot executable. If dotPath is the full path to an executable, it is returned directly. If dotPath is a directory, the dot executable is looked up within that directory. If dotPath is empty, dot is looked up on the system PATH.

func RenderImage

func RenderImage(ctx context.Context, dotExecutable, dotFile, imageFile, fileType string) error

RenderImage runs the dot executable to render dotFile to imageFile using the given fileType. The fileType is passed to dot as -T<fileType> (e.g. "png", "svg").

Types

This section is empty.

Jump to

Keyboard shortcuts

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