summaryrefslogtreecommitdiff
path: root/embeds/embeds.go
diff options
context:
space:
mode:
authorKyren223 <kyren223@proton.me>2025-08-03 15:41:16 +0300
committerKyren223 <kyren223@proton.me>2025-08-03 15:41:16 +0300
commit3feffc0f77c5c525be15981791d948dc65784297 (patch)
tree35265b56469dabb7fa65fc02e3f9fa16c0e60488 /embeds/embeds.go
parent9913e614ec9ecfa73551c72813ef39f125b310f5 (diff)
Directly embedding version inside the app instead of injecting it at
build time, so there is always only one source of truth
Diffstat (limited to 'embeds/embeds.go')
-rw-r--r--embeds/embeds.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/embeds/embeds.go b/embeds/embeds.go
index 2cf0dcc..8bb7787 100644
--- a/embeds/embeds.go
+++ b/embeds/embeds.go
@@ -21,8 +21,10 @@ import (
"sync/atomic"
)
+//go:embed VERSION
+var Version string
+
var (
- Version string = "unknown"
Commit string = "unknown"
BuildDate string = "unknown"
)