No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Latest commit ee64f40 Sep 21, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
media goweight Sep 21, 2018
pkg goweight Sep 21, 2018
.gitignore goweight Sep 21, 2018
.goreleaser.yml brew Sep 21, 2018
LICENSE.txt goweight Sep 21, 2018
Makefile goweight Sep 21, 2018
README.md docs: newlines Sep 21, 2018
go.mod goweight Sep 21, 2018
go.sum goweight Sep 21, 2018
main.go goweight Sep 21, 2018

README.md

goweight

A tool to analyze and troubleshoot a Go binary size.

For more, see this blog post

Get a breakdown of all modules inside a binary
Supports Go 1.11 modules
Output as JSON for tracking and/or monitoring as part of CI

Quick Start

$ go get github.com/jondot/goweight
$ cd current-project
$ goweight

As an example, here's what goweight has to say about itself:

$ ./goweight
  3.0 MB runtime
  1.6 MB net
  1.4 MB reflect
  1.3 MB gopkg.in/alecthomas/kingpin.v2
  870 kB math/big
  668 kB github.com/alecthomas/template
  628 kB syscall
  626 kB text/template
  550 kB go/ast
  546 kB encoding/json
  509 kB text/template/parse
  495 kB github.com/alecthomas/template/parse
  424 kB time
  402 kB regexp/syntax
  395 kB golang_org/x/net/dns/dnsmessage
  388 kB fmt

Thanks:

To all Contributors - you make this happen, thanks!

Copyright

Copyright (c) 2018 @jondot. See LICENSE for further details.