12345678910111213141516171819 |
- package main
- import (
- "demo/internal/controller"
- "github.com/gogf/gf/v2/frame/g"
- "github.com/gogf/gf/v2/os/gcfg"
- // _ "demo/internal/packed"
- "github.com/gogf/gf/v2/os/gctx"
- "demo/internal/cmd"
- )
- func main() {
- g.Cfg().GetAdapter().(*gcfg.AdapterFile).SetFileName("conf/config.yaml")
- controller.RegisterDb()
- cmd.Main.Run(gctx.New())
- }
|