How To Shrink a Go Executable

shrink go executable

In this post, I’ll show you how to shrink your Go executable file (the output of go build). Go binaries can be quite large. For example, the simple ‘Hello world’ from the Go Tutorial introduction turns into a 2.8MB binary on Windows. If you don’t care about the size of your executables, that’s fine. With … Read more