What would be the preferred and optimal build command be?
I used:
GO111MODULE=on CGO_ENABLED=0 go build -v -trimpath -buildmode=pie -modcacherw -tags netgo -ldflags="-s -w"
I get a fairly decent binary at 5.1M but for instance I then cannot compress it with UPX.
What would be the preferred and optimal build command be?
I used:
I get a fairly decent binary at 5.1M but for instance I then cannot compress it with UPX.