Skip to content

Instantly share code, notes, and snippets.

@myitcv
Created October 11, 2018 16:04
Show Gist options
  • Save myitcv/752d2dfbaf8b285ab2fb205ec1a26252 to your computer and use it in GitHub Desktop.
Save myitcv/752d2dfbaf8b285ab2fb205ec1a26252 to your computer and use it in GitHub Desktop.
go mod graph
git clone https://github.com/gobuffalo/buffalo /tmp/buffalo
cd /tmp/buffalo
go mod download
(echo "digraph {"; echo "graph [rankdir=TB, overlap=false];"; go mod graph 2>/dev/null | awk '{print "\""$1"\" -> \""$2"\""};'; echo "}" ) | twopi -Tpng > graph.png
display graph.png
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment