14 lines
142 B
Go
14 lines
142 B
Go
package model
|
|
|
|
type PlayerID string
|
|
|
|
type Player struct {
|
|
ID PlayerID
|
|
}
|
|
|
|
func NewPlayer(id PlayerID) Player {
|
|
return Player{
|
|
ID: id,
|
|
}
|
|
}
|