- 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 projectall: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 = \"\")
转载于:Go语言/3cwYg4