1 Star 0 Fork 186

constructor / godoc

forked from Minho / mindoc
暂停
 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
main.go 811 Bytes
一键复制 编辑 原始数据 按行查看 历史
Minho 提交于 2017-05-15 14:59 . 实现项目内搜索功能
package main
import (
"fmt"
"os"
"github.com/astaxie/beego"
_ "github.com/astaxie/beego/session/memcache"
_ "github.com/astaxie/beego/session/mysql"
_ "github.com/astaxie/beego/session/redis"
_ "github.com/go-sql-driver/mysql"
"github.com/lifei6671/godoc/commands"
"github.com/lifei6671/godoc/conf"
"github.com/lifei6671/godoc/controllers"
_ "github.com/lifei6671/godoc/routers"
)
func main() {
commands.RegisterDataBase()
commands.RegisterModel()
commands.RegisterLogger()
commands.RegisterCommand()
commands.RegisterFunction()
beego.SetStaticPath("uploads", "uploads")
beego.ErrorController(&controllers.ErrorController{})
fmt.Printf("MinDoc version => %s\nbuild time => %s\nstart directory => %s\n%s\n", conf.VERSION, conf.BUILD_TIME, os.Args[0], conf.GO_VERSION)
beego.Run()
}
Go
1
https://gitee.com/constructor/godoc.git
git@gitee.com:constructor/godoc.git
constructor
godoc
godoc
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891