Created
February 4, 2017 06:48
-
-
Save da4nik/efc134f6d7b3a425ba93b5a8ab2ba71f to your computer and use it in GitHub Desktop.
golang build static binary
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
go build -o ./<output binary name> -v -ldflags "-linkmode external -extldflags -static" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment