Directly embedding version inside the app instead of injecting it at

build time, so there is always only one source of truth
This commit is contained in:
2025-08-03 15:41:16 +03:00
parent 9913e614ec
commit 3feffc0f77
5 changed files with 5 additions and 8 deletions

1
embeds/VERSION Normal file
View File

@@ -0,0 +1 @@
v0.0.11

View File

@@ -21,8 +21,10 @@ import (
"sync/atomic"
)
//go:embed VERSION
var Version string
var (
Version string = "unknown"
Commit string = "unknown"
BuildDate string = "unknown"
)