drawer

package
Version: v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package drawer gen the graph and etc.

Index

Constants

View Source
const (
	// DefaultFileName defines default file name
	DefaultFileName = "mew.dot"
	// GraphName defines parent graph name
	GraphName = "Mew"
)

Variables

This section is empty.

Functions

func DrawWithMap

func DrawWithMap(baseNode string, pkgMap map[string][]string) (string, error)

DrawWithMap returns DOT lang of a map

func DrawWithMapAndSave

func DrawWithMapAndSave(baseNode string, filename string, pkgMap map[string][]string) error

DrawWithMapAndSave draws the graph and save to current path by a map

func DrawWithSlice

func DrawWithSlice(baseNode string, pkgNames []string) (string, error)

DrawWithSlice returns the DOT lang of a slice

func DrawWithSliceAndSave

func DrawWithSliceAndSave(filename string, baseNode string, pkgNames []string) error

DrawWithSliceAndSave draws the grpah and save to current path by a slice

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL