2
2
mirror of https://github.com/Hilbis/Hilbish synced 2025-04-12 16:43:22 +00:00

fix: make version a var

so now, it can be changed in compile time
This commit is contained in:
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

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)
}