cmd/vers | ||
LICENSE | ||
README.md | ||
vers.go |
vers
simple project to demonstrate bulding a tool with a compile-time adjusted value:
$ go install -ldflags=-X=mcquay.me/vers.Version=bleh mcquay.me/vers/cmd/vers
$ vers
version: bleh
cmd/vers | ||
LICENSE | ||
README.md | ||
vers.go |
simple project to demonstrate bulding a tool with a compile-time adjusted value:
$ go install -ldflags=-X=mcquay.me/vers.Version=bleh mcquay.me/vers/cmd/vers
$ vers
version: bleh