Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 54e1de2

Browse files
author
xuxinhua
committed
编译脚本修改
1 parent 4eee4c8 commit 54e1de2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

websites/code/studygolang/install

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ DATE=`date +%FT%T%z`
2020

2121
gofmt -w src
2222

23-
go install -ldflags "-X util/version.Version "$VERSION" -X util.Date "$DATE ./...
23+
go install -ldflags "-X util/version.Version "$VERSION" -X util/version.Date "$DATE ./...
2424

2525
export GOPATH="$OLDGOPATH"
2626
export PATH="$OLDPATH"

websites/code/studygolang/install.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ set VERSION=%VERNAME%-%VERCODE%
2323
gofmt -w src
2424

2525
:: -tags "debug" 表示测试
26-
go install -tags "debug" -ldflags "-X util.version.Version "%VERSION%" -X util.Date "%date:~3,10%T%time%"" ./...
26+
go install -tags "debug" -ldflags "-X util/version.Version "%VERSION%" -X util/version.Date "%date:~3,10%T%time%"" ./...
2727

2828
set GOPATH=%OLDGOPATH%
2929

0 commit comments

Comments
 (0)