code: func (s *AccountsService) ListAccountCapabilities(accountID string, opt *CapabilityOptions) (*AccountCapabilityInfo, *Response, error) {
  	u := fmt.Sprintf("accounts/%s/capabilities", accountID)
  
  	u, err := addOptions(u, opt)
  	if err != nil {
  		return nil, nil, err
  	}
  
  	req, err := s.client.NewRequest("GET", u, nil)
  	if err != nil {
  		return nil, nil, err
  	}
  
  	v := new(AccountCapabilityInfo)
  	resp, err := s.client.Do(req, v)
  	if err != nil {
  		return nil, resp, err
  	}
  
  	return v, resp, err
  }
docs: // ListAccountCapabilities returns the global capabilities that are enabled for the specified user.
  // If the global capabilities for the calling user should be listed, self can be used as account-id.
  // This can be used by UI tools to discover if administrative features are available to the caller, so they can hide (or show) relevant UI actions.
  //
  // Gerrit API docs: https://gerrit-review.googlesource.com/Documentation/rest-api-accounts.html#list-account-capabilities