Skip to content

Instantly share code, notes, and snippets.

@hoenirvili
Created February 27, 2016 11:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hoenirvili/83c6fbe9b8f811227161 to your computer and use it in GitHub Desktop.
Save hoenirvili/83c6fbe9b8f811227161 to your computer and use it in GitHub Desktop.
Golang production
# 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