package player type Player struct { Id string `json:"id"` Color string `json:"color"` Type Type `json:"type"` } type Type int const ( MyPlayer Type = 1 )