code: func (s *IndicesExistsTemplateService) buildURL() (string, url.Values, error) {
  	// Build URL
  	path, err := uritemplates.Expand("/_template/{name}", map[string]string{
  		"name": s.name,
  	})
  	if err != nil {
  		return "", url.Values{}, err
  	}
  
  	// Add query string parameters
  	params := url.Values{}
  	if s.pretty {
  		params.Set("pretty", "true")
  	}
  	if s.local != nil {
  		params.Set("local", fmt.Sprintf("%v", *s.local))
  	}
  	return path, params, nil
  }
docs: // buildURL builds the URL for the operation.