Golang Binary Versioning Trick
To use, place the code in
version_trick.go in your project. Don't forget to change the namespace to match yours to the actual name of your package.
In addition to
version_trick.go, there's a makefile-snippet, that includes the secret sauce for making this trick
work. Be sure to change the package name there as well.