Created
June 27, 2019 01:42
-
-
Save kevinadi/f4a72a038f028aff58edbfde466073c1 to your computer and use it in GitHub Desktop.
Revisions
-
kevinadi created this gist
Jun 27, 2019 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,8 @@ version=$(shell git describe --always --long --dirty) date=$(shell date -j "+(%b %Y)") all: @go build -v -ldflags '-X "main.version=${version}" -X "main.date=${date}"' install: @go install -v -ldflags '-X "main.version=${version}" -X "main.date=${date}"'