Skip to content

Latest commit

 

History

History
9 lines (6 loc) · 407 Bytes

README.md

File metadata and controls

9 lines (6 loc) · 407 Bytes

Go mod 2 dot

Run this in a Go project to get a dependency graph as a dot digraph, which you can render using the dot command line tool. This thing also takes in an optional filter, which is a RE2 regex. If you want to see why a particular package was imported in a graphical way, this is a way to do that.

Example

gomod2dot urfave/cli | dot -Tpng > go.mod.png