Skip to content
This repository has been archived by the owner on Jan 31, 2018. It is now read-only.

urld/fatdeps

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fatdeps

Go Report Card GoDoc

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.

Installation

First install graphviz for your OS, then

go get github.com/urld/fatdeps

Usage

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.

Example

TODO

  • improve filter