code: func (d CPUDetails) CoresInSocket(id int) cpuset.CPUSet {
  	b := cpuset.NewBuilder()
  	for _, info := range d {
  		if info.SocketID == id {
  			b.Add(info.CoreID)
  		}
  	}
  	return b.Result()
  }
docs: // CoresInSocket returns all of the core IDs associated with the given
  // socket ID in this CPUDetails.