How to shrink a Go executable
Measured on Go 1.27: how -ldflags=”-s -w” and -trimpath shrink a Go binary, what you give up, and the trade-offs of compressing it with UPX.
Measured on Go 1.27: how -ldflags=”-s -w” and -trimpath shrink a Go binary, what you give up, and the trade-offs of compressing it with UPX.