Hi golang-nuts,
As far as I know, there are two approaches to add extra information at build time:
1. using -ldflags="-X path/pkg.Var=${ENV_VAR}", in a Makefile
2. using `go generate ./...`, before `go build`
These approaches are good as it is if I build my binary and distribute it to other users.
1. `go get` does not understand Makefile
2. `go generate` does not execute with `go build` automatically.
What should I do in order to plug the extra information (in my case, the git version) if my user uses "go get"?