fix: make `version` a var

so now, it can be changed in compile time
pull/59/head
sammy 2021-05-13 21:02:56 -04:00
parent bb7f9e45f0
commit 69c0ccc807
No known key found for this signature in database
GPG Key ID: 50EE40A2809851F5
1 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ import (
"golang.org/x/term"
)
const version = "0.4.1-dev.9"
var version = "v0.4.1-dev.9"
var (
l *lua.LState
@ -76,7 +76,7 @@ func main() {
}
if *verflag {
fmt.Printf("Hilbish v%s\n", version)
fmt.Printf("Hilbish %s\n", version)
os.Exit(0)
}