code: func (u *DockerRegistryURL) baseString(includeCredentials bool) string {
  	var base string
  	if includeCredentials {
  		base = u.BaseURL()
  	} else {
  		base = u.BaseURLNoCredentials()
  	}
  
  	s := u.Path()
  	if s == "" {
  		return base
  	} else {
  		return fmt.Sprintf("%s/%s", base, s)
  	}
  }
docs: // baseString is wrapped by String and StringNoCredentials.
  // It exposes a flag to indicate whether to include credentials in the BaseURL.