mindoc/main.go

21 lines
381 B
Go
Raw Normal View History

2017-04-19 18:19:27 +08:00
package main
import (
2017-04-21 18:20:35 +08:00
_ "github.com/go-sql-driver/mysql"
2017-04-19 18:19:27 +08:00
_ "github.com/lifei6671/godoc/routers"
"github.com/astaxie/beego"
2017-04-21 18:20:35 +08:00
"github.com/lifei6671/godoc/commands"
2017-04-19 18:19:27 +08:00
)
func main() {
2017-04-21 18:20:35 +08:00
commands.RegisterDataBase()
commands.RegisterModel()
commands.RegisterLogger()
commands.RegisterCommand()
commands.RegisterFunction()
2017-04-20 18:19:32 +08:00
beego.SetStaticPath("uploads","uploads")
2017-04-21 18:20:35 +08:00
2017-04-19 18:19:27 +08:00
beego.Run()
}