summaryrefslogtreecommitdiff
path: root/version.go
diff options
context:
space:
mode:
Diffstat (limited to 'version.go')
-rw-r--r--version.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/version.go b/version.go
index f9a997e..087666e 100644
--- a/version.go
+++ b/version.go
@@ -2,12 +2,14 @@ package main
import (
"log"
+ _ "embed"
)
+//go:embed VERSION.txt
var version string
func init() {
if version == "" {
- log.Fatal("No version information passed to this via build flags")
+ log.Fatal("Bad build: No version string embedded.")
}
}