Created
June 26, 2020 13:53
-
-
Save ziyoung/e67bf3e179b2cf52a41484176258dc9d to your computer and use it in GitHub Desktop.
go build flag
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 link | |
PKG_NAME = github.com/ziyoung/repo | |
GO_LDFLAGS = -X ${PKG_NAME}/pkg.Var=123 | |
build: | |
go build -ldflags "${GO_LDFLAGS}" -o file ./some-file.go |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment