package main import ( _ "embed" "log" ) //go:embed VERSION.txt var version string func init() { if version == "" { log.Fatal("Bad build: No version string embedded.") } }