code: func (u *HealthCheck) normalizeCheckURL(name string) string {
  	// The DNS server might be an HTTP server.  If so, extract its name.
  	hostName := name
  	ret, err := url.Parse(name)
  	if err == nil && len(ret.Host) > 0 {
  		hostName = ret.Host
  	}
  
  	// Extract the port number from the parsed server name.
  	checkHostName, checkPort, err := net.SplitHostPort(hostName)
  	if err != nil {
  		checkHostName = hostName
  	}
  
  	if u.Port != "" {
  		checkPort = u.Port
  	}
  
  	checkURL := "http://" + net.JoinHostPort(checkHostName, checkPort) + u.Path
  	return checkURL
  }
docs: // normalizeCheckURL creates a proper URL for the health check.