mirror of
https://github.com/mindoc-org/mindoc.git
synced 2026-02-27 17:03:57 +08:00
添加版本号标识
This commit is contained in:
10
main.go
10
main.go
@@ -13,8 +13,16 @@ import (
|
||||
"github.com/lifei6671/godoc/controllers"
|
||||
)
|
||||
|
||||
var (
|
||||
VERSION string
|
||||
BUILD_TIME string
|
||||
GO_VERSION string
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
||||
fmt.Printf("MinDoc version%s\n%s\n%s\nstart directory%s\n", VERSION, BUILD_TIME, GO_VERSION,os.Args[0])
|
||||
|
||||
commands.RegisterDataBase()
|
||||
commands.RegisterModel()
|
||||
commands.RegisterLogger()
|
||||
@@ -23,7 +31,7 @@ func main() {
|
||||
|
||||
beego.SetStaticPath("uploads","uploads")
|
||||
|
||||
fmt.Println(os.Args[0])
|
||||
|
||||
|
||||
beego.ErrorController(&controllers.ErrorController{})
|
||||
beego.Run()
|
||||
|
||||
Reference in New Issue
Block a user