fatdeps
generates package dependency graphs for Go packages, and shows the size of each package.
This is inspired this article: A Story of a Fat Go Binary
The implementation is based on github.com/davecheney/graphpkg.
First install graphviz for your OS, then
go get github.com/urld/fatdeps
Start a http server and open the graph in browser:
fatdeps github.com/urld/helloworld
All the nodes are linked. You can also filter nodes with a query parameter:
http://localhost:8080/github.com/urld/helloworld?match=runtime
To get more detailed size information you can set the parameter symsize=true
:
http://localhost:8080/github.com/urld/helloworld?symsize=true
This only works for commands and requires the compiled binary to be present in $GOBIN
.
- improve filter