To improve the version management, I suggest you not to write the version of the application in the code but to send it through the ldflags by getting the last git tag.
On top of that, I added the possibility to have the revision (hash of the last commit before compiling), so it allows to better follow the errors between 2 builds.
To improve the version management, I suggest you not to write the version of the application in the code but to send it through the ldflags by getting the last git tag.
On top of that, I added the possibility to have the revision (hash of the last commit before compiling), so it allows to better follow the errors between 2 builds.