func (list *FriendsList) GetCopy() map[steamid.SteamId]Friend {
	list.mutex.RLock()
	defer list.mutex.RUnlock()
	flist := make(map[steamid.SteamId]Friend)
	for key, friend := range list.byId {
		flist[key] = *friend
	}
	return flist
}
// Returns a copy of the friends map
Returns a copy of the friends map
// Returns a copy of the friends map
func (list *FriendsList) GetCopy() map[steamid.SteamId]Friend {
	list.mutex.RLock()
	defer list.mutex.RUnlock()
	flist := make(map[steamid.SteamId]Friend)
	for key, friend := range list.byId {
		flist[key] = *friend
	}
	return flist
}
func ( list * FriendsList ) GetCopy ( ) map [ steamid . SteamId ] Friend { list . mutex . RLock ( ) defer list . mutex . RUnlock ( ) flist := make ( map [ steamid . SteamId ] Friend ) for key , friend := range list . byId { flist [ key ] = * friend } return flist }
Returns a copy of the friends map
Returns a copy of the friends map