This commit is contained in:
lifei6671
2017-05-30 20:46:00 +08:00
parent 35f0ba1038
commit 41e19269e2
2 changed files with 15 additions and 1 deletions

View File

@@ -28,6 +28,13 @@ func Install() {
}
}
func Version() {
if len(os.Args) >= 2 && os.Args[1] == "version" {
fmt.Println(conf.VERSION)
os.Exit(0)
}
}
//初始化数据
func initialization() {