Last active
April 21, 2020 12:05
-
-
Save assafmo/cabf9dd60831c81de0590d99d807aa36 to your computer and use it in GitHub Desktop.
Golang build flags
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
go build -ldflags '-linkmode external -extldflags "-static"' |
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
go build -ldflags '-s -w' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment