mchess-server/server/player.go
2023-04-18 22:12:05 +02:00

15 lines
176 B
Go

package server
import "github.com/gorilla/websocket"
type Player struct {
id int
conn *websocket.Conn
}
func NewPlayer(id int) *Player {
return &Player{
id: id,
}
}