package game import () func (gm *Game) SetGameName(name string) error { gm.mu.Lock() gm.name = name gm.mu.Unlock() return gm.SaveGame() }