include version and commit hash at compile time

when using makefile, version is set to "git". Currently  printed on
start, but an about page in the web UI will be added.
This commit is contained in:
Harvey Tindall
2020-08-31 14:57:42 +01:00
parent 6e3d5dac19
commit 1b0ca34586
5 changed files with 28 additions and 2 deletions

1
.gitignore vendored
View File

@@ -13,3 +13,4 @@ jfa-go
build/
pkg/
old/
version.go