package main import ( "log" ) var version string func init() { if version == "" { log.Fatal("No version information passed to this via build flags") } }