hotgo/hotgo-server/main.go

18 lines
301 B
Go
Raw Normal View History

2022-02-25 17:11:17 +08:00
package main
import (
"github.com/bufanyun/hotgo/boot"
"github.com/gogf/gf/v2/errors/gerror"
2022-02-25 17:11:17 +08:00
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/os/gctx"
)
func main() {
var ctx = gctx.New()
2022-02-25 17:11:17 +08:00
if err := boot.Main.RunWithError(ctx); err != nil {
g.Log().Fatal(ctx, gerror.Stack(err))
2022-02-25 17:11:17 +08:00
}
}