main.go
353 Bytes
package main
import (
"pro2d/actions"
"pro2d/utils"
)
func main() {
err := make(chan error)
accountS := actions.NewAccountServer()
go func() {
defer accountS.Stop()
err <- accountS.Start()
}()
gameS := actions.NewGameServer()
go func() {
defer gameS.Stop()
err <- gameS.Start()
}()
utils.Sugar.Errorf("server error: %v", <- err)
}