mirror of
https://github.com/bufanyun/hotgo.git
synced 2025-08-28 07:50:14 +08:00
v2.0
This commit is contained in:
23
server/main.go
Normal file
23
server/main.go
Normal file
@@ -0,0 +1,23 @@
|
||||
// Package main
|
||||
// @Link https://github.com/bufanyun/hotgo
|
||||
// @Copyright Copyright (c) 2022 HotGo CLI
|
||||
// @Author Ms <133814250@qq.com>
|
||||
// @License https://github.com/bufanyun/hotgo/blob/master/LICENSE
|
||||
//
|
||||
package main
|
||||
|
||||
import (
|
||||
_ "hotgo/internal/packed"
|
||||
|
||||
_ "github.com/gogf/gf/contrib/drivers/mysql/v2"
|
||||
"github.com/gogf/gf/v2/os/gctx"
|
||||
"hotgo/internal/cmd"
|
||||
"hotgo/internal/global"
|
||||
_ "hotgo/internal/logic"
|
||||
)
|
||||
|
||||
func main() {
|
||||
var ctx = gctx.New()
|
||||
global.Init(ctx)
|
||||
cmd.Main.Run(ctx)
|
||||
}
|
Reference in New Issue
Block a user