Skip to content

Instantly share code, notes, and snippets.

@osule
Created February 3, 2020 14:18
Show Gist options
  • Save osule/c2ea9b386a8d7cbaa7239fce1c48bfc8 to your computer and use it in GitHub Desktop.
Save osule/c2ea9b386a8d7cbaa7239fce1c48bfc8 to your computer and use it in GitHub Desktop.
Golang tips

Remove debugging information and symbol table

Reason: This reduces binary size

go build -ldflags "-w -s"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment