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

This commit is contained in:
2026-02-07 13:15:29 +08:00
parent c2807b54df
commit 1a42e055ae
4 changed files with 11 additions and 9 deletions

View File

@@ -3,11 +3,15 @@ package main
import (
"fmt"
"git.hlsq.asia/mmorpg/service-qgdzs/app"
"git.hlsq.asia/mmorpg/service-qgdzs/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)
}