mirror of
https://github.com/bufanyun/hotgo.git
synced 2025-01-23 10:50:24 +08:00
18 lines
301 B
Go
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))
|
|
}
|
|
}
|