package state // UserData contains data about clients that is synced between client and server. // Unlike the map, UserData is not persisted to disk, and all UserData is lost on shutdown. type UserData struct { ActiveColor HexColor `json:"active_color"` } // Copy creates a deep copy of this UserData. func (u UserData) Copy() UserData { return UserData{ ActiveColor: u.ActiveColor, } }