You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Go, it isn't typical to have a debug version or a release version.
By default, go build combines symbol and debug info with binary files. However, you can remove the symbol and debug info with go build -ldflags "-s -w".
It's not typical to strip symbols--if you get a report of a panic out in the wild, for example, it'd be great to have the symbols there for an informative stacktrace.
1. go build
In Go, it isn't typical to have a debug version or a release version.
By default,
go build
combines symbol and debug info with binary files. However, you can remove the symbol and debug info withgo build -ldflags "-s -w"
.see https://stackoverflow.com/questions/29599209/how-to-build-a-release-version-binary-in-go
2. the Ultimate Packer for eXecutables
see https://upx.github.io/
The text was updated successfully, but these errors were encountered: