code: func (c *Client) ListWorkers(ctx context.Context, opts ...ListWorkersOption) ([]*WorkerInfo, error) {
  	info := &ListWorkersInfo{}
  	for _, o := range opts {
  		o.SetListWorkersOption(info)
  	}
  
  	req := &controlapi.ListWorkersRequest{Filter: info.Filter}
  	resp, err := c.controlClient().ListWorkers(ctx, req)
  	if err != nil {
  		return nil, errors.Wrap(err, "failed to list workers")
  	}
  
  	var wi []*WorkerInfo
  
  	for _, w := range resp.Record {
  		wi = append(wi, &WorkerInfo{
  			ID:        w.ID,
  			Labels:    w.Labels,
  			Platforms: pb.ToSpecPlatforms(w.Platforms),
  			GCPolicy:  fromAPIGCPolicy(w.GCPolicy),
  		})
  	}
  
  	return wi, nil
  }
docs: // ListWorkers lists all active workers