This commit is contained in:
oneao committed 2026-04-02 17:24:43 +08:00
1 parent 9e00adf2fe
commit ae0d245605
34 files changed
+1460 -162

No files matched your search

@@ -0,0 +1,24 @@
package bootstrap
import (
"allapp-go/internal/config"
"log"
)
type App struct {
Config *config.Config
}
func BootService() *App {
// 1️⃣ 加载配置
cfg, err := config.Load()
if err != nil {
log.Fatalf("❌ load config failed: %v", err)
}
RunServer(cfg)
return &App{
Config: cfg,
}
}