AJ ONeal 47b8ec43ae | ||
---|---|---|
.. | ||
tools | ||
version | ||
README.md | ||
go.mod | ||
main.go |
README.md
Example
Prints the version or a nice message
Put version in its own packge
This is just like examples/basic
,
but it uses the package name version
instead of main
.
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