Created
February 27, 2016 11:20
-
-
Save hoenirvili/83c6fbe9b8f811227161 to your computer and use it in GitHub Desktop.
Golang production
This file contains 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
# It will omit the DWARF symbol table during the build process. | |
go build -o gobin -ldflags=-w | |
# The -s ldflag will omit the symbol table and debugging information when building your executable. | |
go build -o gobin -ldflags=-s | |
# Compress bin with UPX | |
upx gobin |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment