code: func fetchFromURL(url string, timeout time.Duration) (string, error) {
  	klog.V(2).Infof("fetching Kubernetes version from URL: %s", url)
  	client := &http.Client{Timeout: timeout, Transport: netutil.SetOldTransportDefaults(&http.Transport{})}
  	resp, err := client.Get(url)
  	if err != nil {
  		return "", errors.Errorf("unable to get URL %q: %s", url, err.Error())
  	}
  	defer resp.Body.Close()
  	body, err := ioutil.ReadAll(resp.Body)
  	if err != nil {
  		return "", errors.Errorf("unable to read content of URL %q: %s", url, err.Error())
  	}
  	bodyString := strings.TrimSpace(string(body))
  
  	if resp.StatusCode != http.StatusOK {
  		msg := fmt.Sprintf("unable to fetch file. URL: %q, status: %v", url, resp.Status)
  		return bodyString, errors.New(msg)
  	}
  	return bodyString, nil
  }
docs: // Internal helper: return content of URL