Converts 'go mod graph' output into Graphviz's DOT language
Go
489
13 commits
updated Feb 23, 2023
Converts 'go mod graph' output into GraphViz's DOT language.
go mod graph | modgv | dot -Tpng -o graph.png
For each module:
memo currently provides pre-built binaries for the following:
Download the appropriate version for your platform from memo releases.
Once downloaded unpack the archive (zip for Windows; tarball for Linux and macOS) to extract the executable binary.
If you want to use from any location you must put the binary executable to your Path or add the directory where is it to the environment variables.
Go toolchaingit clone https://github.com/lucasepe/modgv.git
cd modgv
go install
Here 👉 https://graphviz.gitlab.io/download/ how to install GraphViz for your OS.
go mod graph | modgv | dot -Tpng -o graph.png

go mod graph | modgv | dot -Tps2 -o graph.ps
ps2pdf graph.ps graph.pdf
2,510 followers · starred Sep 2020
312 followers · starred Sep 2020
406 followers · starred Sep 2020
55 followers · starred Sep 2020
Converts 'go mod graph' output into Graphviz's DOT language
Go
489
13 commits
updated Feb 23, 2023
Converts 'go mod graph' output into GraphViz's DOT language.
go mod graph | modgv | dot -Tpng -o graph.png
For each module:
memo currently provides pre-built binaries for the following:
Download the appropriate version for your platform from memo releases.
Once downloaded unpack the archive (zip for Windows; tarball for Linux and macOS) to extract the executable binary.
If you want to use from any location you must put the binary executable to your Path or add the directory where is it to the environment variables.
Go toolchaingit clone https://github.com/lucasepe/modgv.git
cd modgv
go install
Here 👉 https://graphviz.gitlab.io/download/ how to install GraphViz for your OS.
go mod graph | modgv | dot -Tpng -o graph.png

go mod graph | modgv | dot -Tps2 -o graph.ps
ps2pdf graph.ps graph.pdf
2,510 followers · starred Sep 2020
312 followers · starred Sep 2020
406 followers · starred Sep 2020
55 followers · starred Sep 2020