File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
websites/code/studygolang Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ DATE=`date +%FT%T%z`
20
20
21
21
gofmt -w src
22
22
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 ./...
24
24
25
25
export GOPATH=" $OLDGOPATH "
26
26
export PATH=" $OLDPATH "
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ set VERSION=%VERNAME%-%VERCODE%
23
23
gofmt -w src
24
24
25
25
:: -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% " " ./...
27
27
28
28
set GOPATH = %OLDGOPATH%
29
29
You can’t perform that action at this time.
0 commit comments