mirror of https://github.com/mindoc-org/mindoc.git
26 lines
421 B
Go
26 lines
421 B
Go
package main
|
|
|
|
import (
|
|
_ "github.com/go-sql-driver/mysql"
|
|
_ "github.com/lifei6671/godoc/routers"
|
|
"github.com/astaxie/beego"
|
|
"github.com/lifei6671/godoc/commands"
|
|
"fmt"
|
|
"os"
|
|
)
|
|
|
|
func main() {
|
|
fmt.Println(os.Args[0])
|
|
commands.RegisterDataBase()
|
|
commands.RegisterModel()
|
|
commands.RegisterLogger()
|
|
commands.RegisterCommand()
|
|
commands.RegisterFunction()
|
|
|
|
beego.SetStaticPath("uploads","uploads")
|
|
|
|
|
|
|
|
beego.Run()
|
|
}
|