func (list *FriendsList) ById(id steamid.SteamId) (Friend, error) {
	list.mutex.RLock()
	defer list.mutex.RUnlock()
	if val, ok := list.byId[id]; ok {
		return *val, nil
	}
	return Friend{}, errors.New("Friend not found")
}
// Returns a copy of the friend of a given SteamId
Returns a copy of the friend of a given SteamId
// Returns a copy of the friend of a given SteamId
func (list *FriendsList) ById(id steamid.SteamId) (Friend, error) {
	list.mutex.RLock()
	defer list.mutex.RUnlock()
	if val, ok := list.byId[id]; ok {
		return *val, nil
	}
	return Friend{}, errors.New("Friend not found")
}
func ( list * FriendsList ) ById ( id steamid . SteamId ) ( Friend , error ) { list . mutex . RLock ( ) defer list . mutex . RUnlock ( ) if val , ok := list . byId [ id ] ; ok { return * val , nil } return Friend { } , errors . New ( " " ) }
Returns a copy of the friend of a given SteamId
Returns a copy of the friend of a given SteamId