richardwilkes / graphdot

Visualize Go module dependencies in Graphviz DOT format

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Visualize Go module dependencies in Graphviz DOT format

License:MIT License


Languages

Language:Go 100.0%