Reduce Go binary size by stripping debug information, disabling the standard library's embedded test data, and using static linking with the ldflags flag to remove symbol tables and version info.
go build -ldflags="-s -w" -trimpath -o myapp main.go
For further reduction, ensure you are not importing unused packages and consider using go build -a to force a full rebuild if caching is keeping old, larger binaries.