Skip to content

Instantly share code, notes, and snippets.

@litetex
Created May 29, 2026 22:16
Show Gist options
  • Select an option

  • Save litetex/1a2553896651304f2cb8df2c3e6c1798 to your computer and use it in GitHub Desktop.

Select an option

Save litetex/1a2553896651304f2cb8df2c3e6c1798 to your computer and use it in GitHub Desktop.
Analyze Go Binary in Docker
docker run --rm -it -v %cd%:/work -w /work -p 8080:8080 alpine:3
apk add go --repository=https://dl-cdn.alpinelinux.org/alpine/edge/community
GOEXPERIMENT=jsonv2 go install github.com/Zxilly/go-size-analyzer/cmd/gsa@latest
export PATH=$PATH:$(go env GOPATH)/bin

gsa --web otelcol-custom
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment