This commit is contained in:
Sun
2023-11-08 21:53:07 +08:00
commit 211c3071dc
245 changed files with 39293 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
package main
import (
"log"
"sun-panel/global"
"sun-panel/initialize"
"sun-panel/router"
)
func main() {
err := initialize.InitApp()
if err != nil {
log.Println("初始化错误:", err.Error())
panic(err)
}
httpPort := global.Config.GetValueStringOrDefault("base", "http_port")
if err := router.InitRouters(":" + httpPort); err != nil {
panic(err)
}
}