Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f6b1248 commit 0976514Copy full SHA for 0976514
websites/code/studygolang/install
@@ -20,7 +20,7 @@ DATE=`date +%FT%T%z`
20
21
gofmt -w src
22
23
-go install -ldflags "-X util.Version "$VERSION" -X util.Date "$DATE ./...
+go install -ldflags "-X util/version.Version "$VERSION" -X util.Date "$DATE ./...
24
25
export GOPATH="$OLDGOPATH"
26
export PATH="$OLDPATH"
websites/code/studygolang/src/util/version/version.go
@@ -17,7 +17,7 @@ install(bash/bat). Or date is binary modify time.
17
18
To set these manually use -ldflags together with -X, like in this example:
19
- go install -ldflags "-X util.version v1.0"
+ go install -ldflags "-X util/version.Version v1.0"
*/
0 commit comments