Created
April 22, 2016 14:17
-
-
Save tomask-de/3b6803f910b932dcd768893dfae916c9 to your computer and use it in GitHub Desktop.
build a statically linked executable 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
| #!/bin/bash | |
| go build -installsuffix netgo -tags netgo -a -ldflags "-s -X main.version=${VERDSION}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment