main.go 347 B

12345678910111213141516171819
  1. package main
  2. import (
  3. "demo/internal/controller"
  4. "github.com/gogf/gf/v2/frame/g"
  5. "github.com/gogf/gf/v2/os/gcfg"
  6. // _ "demo/internal/packed"
  7. "github.com/gogf/gf/v2/os/gctx"
  8. "demo/internal/cmd"
  9. )
  10. func main() {
  11. g.Cfg().GetAdapter().(*gcfg.AdapterFile).SetFileName("conf/config.yaml")
  12. controller.RegisterDb()
  13. cmd.Main.Run(gctx.New())
  14. }