code: func extractHostname(in string) string {
  	if in == "" {
  		return ""
  	}
  	// help url.Parse by adding a scheme if one is missing. This should still
  	// allow for any scheme, but by default we assume http (only for parsing)
  	urlStr := in
  	if !strings.Contains(urlStr, "://") {
  		urlStr = "http://" + urlStr
  	}
  	u, err := url.Parse(urlStr)
  	if err == nil {
  		if ch := fsutil.CleanFilename(u.Hostname()); ch != "" {
  			return ch
  		}
  	}
  	return fsutil.CleanFilename(in)
  }
docs: // extractHostname tries to extract the hostname from a URL in a filepath-safe
  // way for use in the name of a secret