Skip to content

Instantly share code, notes, and snippets.

@jwieringa
Created May 13, 2019 22:38
Show Gist options
  • Save jwieringa/b320210c9cc37a7107d1a48714bc7235 to your computer and use it in GitHub Desktop.
Save jwieringa/b320210c9cc37a7107d1a48714bc7235 to your computer and use it in GitHub Desktop.

Handy inspection tool.

Defails: https://medium.com/@jondot/a-story-of-a-fat-go-binary-20edc6549b97

Source: https://github.com/jondot/goweight

$ goweight
  3.3 MB runtime
  1.3 MB reflect
  813 kB syscall
  631 kB encoding/json
  452 kB time
  436 kB fmt
  392 kB os
  266 kB strings
  263 kB strconv
  229 kB unicode
  223 kB flag
  223 kB math
  199 kB bytes
  194 kB internal/poll
  178 kB encoding/binary
  177 kB bufio
  140 kB io
  124 kB sync
  121 kB sort
  101 kB path/filepath
   77 kB encoding/base64
   52 kB internal/fmtsort
   49 kB github.com/howeyc/crc16
   40 kB internal/cpu
   39 kB math/bits
   27 kB unicode/utf8
   19 kB sync/atomic
   15 kB hash
   15 kB internal/bytealg
   14 kB internal/testlog
   12 kB runtime/internal/atomic
   11 kB runtime/internal/sys
  8.0 kB unicode/utf16
  7.2 kB internal/syscall/unix
  6.8 kB encoding
  4.2 kB errors
  3.6 kB internal/race
  1.6 kB runtime/internal/math
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment