code: func (s *PluginsService) ListPlugins(opt *PluginOptions) (*map[string]PluginInfo, *Response, error) {
  	u := "plugins/"
  
  	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(map[string]PluginInfo)
  	resp, err := s.client.Do(req, v)
  	if err != nil {
  		return nil, resp, err
  	}
  
  	return v, resp, err
  }
docs: // ListPlugins lists the plugins installed on the Gerrit server.
  // Only the enabled plugins are returned unless the all option is specified.
  //
  // To be allowed to see the installed plugins, a user must be a member of a group that is granted the 'View Plugins' capability or the 'Administrate Server' capability.
  // The entries in the map are sorted by plugin ID.
  //
  // Gerrit API docs: https://gerrit-review.googlesource.com/Documentation/rest-api-plugins.html#list-plugins