2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 14:57:16 +08:00
Files
panel/bootstrap/app.go
2024-06-25 01:52:41 +08:00

25 lines
356 B
Go

package bootstrap
import (
"runtime/debug"
"github.com/gookit/validate/locales/zhcn"
"github.com/goravel/framework/foundation"
"github.com/TheTNB/panel/config"
)
func Boot() {
debug.SetGCPercent(20)
zhcn.RegisterGlobal()
app := foundation.NewApplication()
// Bootstrap the application
app.Boot()
// Bootstrap the config.
config.Boot()
}