Created
November 1, 2022 19:13
-
-
Save gkhays/762d4d413d41894a62a8f79449871728 to your computer and use it in GitHub Desktop.
Golang Build Script
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
#!/bin/bash | |
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 \ | |
go build \ | |
-a \ | |
-v \ | |
-trimpath='true' \ | |
-buildmode='exe' \ | |
-buildvcs='true' \ | |
-compiler='gc' \ | |
-mod='vendor' \ | |
-o ping-server |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment