update: get version from git

This commit is contained in:
zhshch2002
2022-05-25 12:56:47 +08:00
parent ebd435db53
commit 870d1f3b5a
2 changed files with 11 additions and 7 deletions

View File

@@ -5,8 +5,12 @@ import (
"net"
)
var version = "v0.0.0.alpha"
var buildDate = ""
var commitID = ""
func Version() {
fmt.Print("NextTrace v0.1.2-Beta ") // TODO get version from git
fmt.Println("NextTrace ", version, buildDate, commitID)
fmt.Println("XGadget-lab Leo (leo.moe) & Vincent (vincent.moe) & zhshch (xzhsh.ch)")
}