Tool for determining package size in a Go binary

At times (especially when deploying to embedded systems) we want to know what packages are using what space in a go binary. This tool provides some insight:

To use install globally in GOPATH, then cd into the directory of the main.go (typically cmd/<tool>/) and run goweight.

Example output: