Last active
March 16, 2019 22:17
-
-
Save jmmaranan/39e6ca02a3ac7b3dec54e2ed918bef07 to your computer and use it in GitHub Desktop.
go build compress, strip debug, stacktraces
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ GOOS=windows GOARCH=amd64 go build -ldflags="-s -w" cmd/app-name | |
$ upx --brute app-name.exe | |
from 5.7MB to 1.7MB! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment