goweight

A tool to analyze and troubleshoot a Go binary size.

Github星跟蹤圖

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

With Go Modules - Go 1.11 or higher

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

Without Go Modules - Before Go 1.11

$ git clone https://github.com/jondot/goweight
$ cd goweight
$ go install

$ 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.

主要指標

概覽
名稱與所有者jondot/goweight
主編程語言Go
編程語言Makefile (語言數: 2)
平台
許可證MIT License
所有者活动
創建於2018-09-21 13:51:56
推送於2024-04-10 22:16:07
最后一次提交2019-05-04 16:14:45
發布數6
最新版本名稱v1.0.5 (發布於 )
第一版名稱v1.0.0 (發布於 )
用户参与
星數1.7k
關注者數16
派生數51
提交數20
已啟用問題?
問題數14
打開的問題數7
拉請求數7
打開的拉請求數3
關閉的拉請求數1
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?