Last active
May 20, 2018 17:58
-
-
Save AndreKR/787ddc3fea4f43d94020c2f7750b6344 to your computer and use it in GitHub Desktop.
Build smaller executables with Go
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
| go build -gcflags=all=-trimpath=c:\path\to\trim -asmflags=all=-trimpath=c:\path\to\trim -ldflags=all="-s -w" | |
| upx ... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment