// GetPathWithBase returns the path to send to the upstream registry
GetPathWithBase returns the path to send to the upstream registry
// GetPathWithBase returns the path to send to the upstream registry
func GetPathWithBase(path, base string) string {
	if base != "" {
		parts := strings.Split(path, "/")
		parts = append(parts, "")
		copy(parts[3:], parts[2:])
		parts[2] = strings.TrimPrefix(base, "/")
		return strings.Join(parts, "/")
	}
	return path
}
func GetPathWithBase ( path , base string ) string { if base != " " { parts := strings . Split ( path , " " ) parts = append ( parts , " " ) copy ( parts [ 3 : ] , parts [ 2 : ] ) parts [ 2 ] = strings . TrimPrefix ( base , " " ) return strings . Join ( parts , " " ) } return path }
GetPathWithBase returns the path to send to the upstream registry
GetPathWithBase returns the path to send to the upstream registry