示例#1
0
func main() {
	util.Init()
	util.ChDirToExe()
	util.LogStart([]util.LogClient{srv.NewLogClient()})

	log.Println("Game Server started.")
	defer util.TimeStart("Game Server finished.")()
	run()
}
示例#2
0
func main() {
	util.Init()
	util.ChDirToExe()
	util.LogStart([]util.LogClient{srv.NewLogClient()})

	log.Println("Admin Server started.")
	defer util.TimeStart("Admin Server finished.")()

	srv.ServiceMain(start, run, stop)
}