Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

How to create dependency graph of Go packages

📅 2016-May-16 ⬩ ✍️ Ashwin Nanjappa ⬩ 📚 Archive

A great tool for visualizing the dependencies between Go packages is godepgraph. This can output the dependency graph for packages in a Go package in GraphViz format. This can be viewed easily using XDot or saved into various image formats.

$ go get github.com/kisielk/godepgraph
$ godepgraph github.com/joe/foogoproject > out.dot

Tried with: Go 1.6.2 and Ubuntu 14.04