diff options
Diffstat (limited to 'version.go')
-rw-r--r-- | version.go | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -1,13 +1,13 @@ package main -import "fmt" +import ( + "log" +) var gitDescribe string -func version() (string, error) { +func init() { if gitDescribe == "" { - return "", fmt.Errorf("No version information available") + log.Fatal("No version information passed to this via build flags") } - - return gitDescribe, nil } |