feat 基础模块拆分为雪花和日志模块

This commit is contained in:
2026-02-07 13:15:28 +08:00
parent c659d3d83b
commit 146c1734fa
4 changed files with 11 additions and 9 deletions

View File

@@ -3,11 +3,15 @@ package main
import (
"fmt"
"git.hlsq.asia/mmorpg/service-scene/app"
"git.hlsq.asia/mmorpg/service-scene/config"
"github.com/judwhite/go-svc"
"syscall"
)
func main() {
if err := config.LoadConfig(); err != nil {
fmt.Println(err)
}
if err := svc.Run(&app.Program{}, syscall.SIGINT, syscall.SIGTERM, syscall.SIGKILL); err != nil {
fmt.Println(err)
}