code: func (s *ConfigService) ListCapabilities() (*map[string]ConfigCapabilityInfo, *Response, error) {
  	u := "config/server/capabilities"
  
  	req, err := s.client.NewRequest("GET", u, nil)
  	if err != nil {
  		return nil, nil, err
  	}
  
  	v := new(map[string]ConfigCapabilityInfo)
  	resp, err := s.client.Do(req, v)
  	if err != nil {
  		return nil, resp, err
  	}
  
  	return v, resp, err
  }
docs: // ListCapabilities lists the capabilities that are available in the system.
  // There are two kinds of capabilities: core and plugin-owned capabilities.
  // The entries in the map are sorted by capability ID.
  //
  // Gerrit API docs: https://gerrit-review.googlesource.com/Documentation/rest-api-config.html#list-capabilities