Note on how overriding the version works: If you just run `go run cmd/influx/main.go` you'll see the shell print out "Influx DB shell 0.9" as this commit sets the package-level variable `version` to the string "0.9". Running `go run -ldflags "-X main.version 123" cmd/influx/main.go` will print out "Influx DB shell 123". (`-ldflags` works for `go install` and `go build`, too.) |
||
---|---|---|
.. | ||
main.go | ||
main_test.go |