1 Star 1 Fork 0

coso/spidernovel

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
main.go 525 Bytes
一键复制 编辑 原始数据 按行查看 历史
package main
import (
_ "spidernovel/routers"
"github.com/astaxie/beego"
_ "github.com/astaxie/beego/cache/redis"
)
func main() {
//logs.SetLogger(logs.AdapterConsole, `{"level":7}`)
//logs.SetLogger(logs.AdapterFile, `{"filename":"/home/wwwlogs/book/book.log","level":7,"maxlines":0,"maxsize":0,"daily":true,"maxdays":1000}`)
////异步
//logs.Async()
if beego.BConfig.RunMode == "dev" {
beego.BConfig.WebConfig.DirectoryIndex = true
beego.BConfig.WebConfig.StaticDir["/swagger"] = "swagger"
}
beego.Run()
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/wutongci/spidernovel.git
[email protected]:wutongci/spidernovel.git
wutongci
spidernovel
spidernovel
master

搜索帮助