hotgo/hotgo-server/main.go
2022-03-22 09:45:18 +08:00

18 lines
301 B
Go

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