code: func (l *CapList) CapSet(caps []pb.APICap) CapSet {
  	m := make(map[string]*pb.APICap, len(caps))
  	for _, c := range caps {
  		if c.ID != "" {
  			c := c // capture loop iterator
  			m[c.ID] = &c
  		}
  	}
  	return CapSet{
  		list: l,
  		set:  m,
  	}
  }
docs: // CapSet returns a CapSet for an capability configuration