diff options
Diffstat (limited to 'version.go')
-rw-r--r-- | version.go | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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.") } } |