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.
- To install:
$ go get github.com/kisielk/godepgraph
- Invoke from any place on a Go package stored in
$ godepgraph github.com/joe/foogoproject > out.dot
- If the packages from the Go standard library are not excluded the graph can be very messy. To exclude them use the
Tried with: Go 1.6.2 and Ubuntu 14.04