2
0
mirror of https://github.com/therootcompany/go-gitver.git synced 2025-02-22 06:38:05 +00:00
2020-10-12 14:46:35 -06:00
..
2020-10-12 14:46:35 -06:00
2020-10-12 14:42:55 -06:00
2020-10-12 14:42:55 -06:00

Example

Prints the version or a nice message

Doesn't have a separate tools package

This is just like examples/basic, but it uses a normal file with a build tag rather than a tools package.

See examples/basic for more details.

Demo

go mod tidy
go mod vendor
go generate -mod=vendor ./...
go build -mod=vendor -o hello *.go
./hello
./hello --version