graphdot
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