game/server/client/main.go

25 lines
434 B
Go
Raw Normal View History

2025-05-29 17:54:47 +08:00
package main
import (
2025-05-31 13:26:52 +08:00
"game/server/client/cmd"
2025-05-29 17:54:47 +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")
}
ksync.RunSafe(func() {
cmd.Run(GitBranch, GitCommit, BuildDate)
}, func() { log.ErrorF("reset run") })
}