code: func (s *NodesInfoService) buildURL() (string, url.Values, error) {
  	// Build URL
  	path, err := uritemplates.Expand("/_nodes/{node_id}/{metric}", map[string]string{
  		"node_id": strings.Join(s.nodeId, ","),
  		"metric":  strings.Join(s.metric, ","),
  	})
  	if err != nil {
  		return "", url.Values{}, err
  	}
  
  	// Add query string parameters
  	params := url.Values{}
  	if s.flatSettings != nil {
  		params.Set("flat_settings", fmt.Sprintf("%v", *s.flatSettings))
  	}
  	if s.human != nil {
  		params.Set("human", fmt.Sprintf("%v", *s.human))
  	}
  	if s.pretty {
  		params.Set("pretty", "true")
  	}
  	return path, params, nil
  }
docs: // buildURL builds the URL for the operation.