graphdot

command module
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 10, 2019 License: MIT Imports: 6 Imported by: 0

README

graphdot

Visualize Go module dependencies in Graphviz DOT format

Installation

Install graphdot using go get:

go get -u github.com/ewohltman/graphdot

Usage

Run graphdot in the directory of any project using Go modules with a go.mod file to print out a dependency graph in Graphviz DOT format.

The output can be piped directly into dot to generate a PNG image file:

graphdot | dot -T png -o dependency_graph.png

For large graphs with many nodes of dependencies, you may want to generate an SVG file to allow you to zoom in with high-fidelity and save disk space instead:

graphdot | dot -Gdpi=0 -T svg -o dependency_graph.svg

Contributing

Contributions are very welcome, however please follow the below guidelines.

  • Open an issue describing the bug or enhancement
  • Fork the develop branch and make your changes
  • Create a Pull Request with your changes against the develop branch

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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