package main import ( _ "hongze/hongze_task/routers" "hongze/hongze_task/services" "github.com/astaxie/beego" ) func main() { if beego.BConfig.RunMode == "dev" { beego.BConfig.WebConfig.DirectoryIndex = true beego.BConfig.WebConfig.StaticDir["/swagger"] = "swagger" } go services.Task() beego.Run() }