code: func (ps *peerSet) AllPeers() []*peerConnection {
  	ps.lock.RLock()
  	defer ps.lock.RUnlock()
  
  	list := make([]*peerConnection, 0, len(ps.peers))
  	for _, p := range ps.peers {
  		list = append(list, p)
  	}
  	return list
  }
docs: // AllPeers retrieves a flat list of all the peers within the set.