game/server/lobby/main.go

26 lines
470 B
Go
Raw Normal View History

2025-05-25 20:34:08 +08:00
package main
import (
2025-06-14 12:31:57 +08:00
"game/server/lobby/cmd"
2025-05-25 20:34:08 +08:00
"github.com/fox/fox/ksync"
"github.com/fox/fox/log"
"time"
)
var (
GitCommit = "unknown"
GitBranch = "unknown"
BuildDate = "unknown"
)
func main() {
tm, err := time.Parse("20060102150405", BuildDate)
if err == nil {
BuildDate = tm.Format("2006-01-02 15:04:05")
}
2025-06-14 12:31:57 +08:00
//BuildDate = "2025-05-31 09:56:06"
2025-05-25 20:34:08 +08:00
ksync.RunSafe(func() {
2025-06-14 12:31:57 +08:00
cmd.Run(GitBranch, GitCommit, BuildDate)
}, func() { log.ErrorF("reset run") })
2025-05-25 20:34:08 +08:00
}