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