graphviz

package
v0.0.0-...-6719cd2 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package graphviz generates diagrams from dot input.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(filename string, generate func(io.Writer), options Options) error

Create writes an image file from a Graphviz spec. It invokes the "dot" program internally. 'generate' should write the Graphviz spec into the given writer; it may safely ignore errors from the writer.

Types

type Filetype

type Filetype int

Filetype is the file format of output image.

const (
	PDF Filetype = 1
	PNG Filetype = 2
	SVG Filetype = 3
)

Supported Filetypes.

type Options

type Options struct {
	// Unless provided, Create will attempt to autodetect this from the filename.
	Filetype Filetype
}

Options to Create.

Jump to

Keyboard shortcuts

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