main.go
349 字节
package main
import (
"github.com/astaxie/beego"
"gitlab.fjmaimaimai.com/mmm-go/gocomm/pkg/log"
_ "openapi/routers"
"time"
)
func init() {
time.Local = time.FixedZone("CST", 3600*8)
}
func main() {
defer func() {
log.Info("app on stop!")
}()
log.Info("app on start!")
log.Info("Beego Run Mode:", beego.BConfig.RunMode)
beego.Run()
}