- Makefile
-
BUILD=`date +%FT%T%z` COMMIT_SHA1=`git rev-parse HEAD` LDFLAGS=-ldflags "-X main.BUILD=${BUILD} -X main.COMMIT_SHA1=${COMMIT_SHA1}" # Builds the project all: app: go build ${LDFLAGS} -o ../bin/app/app github.com/winxxp/cmd/app
-
main.go
-
const ( VERSION = "1.0.11" BUILD = "2016-11-18 16:40:00" COMMIT_SHA1 = "" )
有疑问加站长微信联系(非本文作者)