Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for EscapePath (0.62 sec)

  1. src/cmd/vendor/golang.org/x/mod/module/module.go

    			vj, fj = vj[:k], vj[k:]
    		}
    		if vi != vj {
    			return semver.Compare(vi, vj) < 0
    		}
    		return fi < fj
    	})
    }
    
    // EscapePath returns the escaped form of the given module path.
    // It fails if the module path is invalid.
    func EscapePath(path string) (escaped string, err error) {
    	if err := CheckPath(path); err != nil {
    		return "", err
    	}
    
    	return escapeString(path)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 09 20:17:07 UTC 2024
    - 26.9K bytes
    - Viewed (0)
  2. src/cmd/go/internal/modfetch/proxy.go

    	default:
    		return nil, fmt.Errorf("invalid proxy URL scheme (must be https, http, file): %s", redactedBase)
    	}
    
    	// Append the module path to the URL.
    	url := base
    	enc, err := module.EscapePath(path)
    	if err != nil {
    		return nil, err
    	}
    	url.Path = strings.TrimSuffix(base.Path, "/") + "/" + enc
    	url.RawPath = strings.TrimSuffix(base.RawPath, "/") + "/" + pathEscape(enc)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 03 15:21:05 UTC 2023
    - 13K bytes
    - Viewed (0)
  3. src/cmd/go/proxy_test.go

    	return info.Short
    }
    
    var archiveCache par.Cache[string, *txtar.Archive]
    
    var cmdGoDir, _ = os.Getwd()
    
    func readArchive(path, vers string) (*txtar.Archive, error) {
    	enc, err := module.EscapePath(path)
    	if err != nil {
    		return nil, err
    	}
    	encVers, err := module.EscapeVersion(vers)
    	if err != nil {
    		return nil, err
    	}
    
    	prefix := strings.ReplaceAll(enc, "/", "_")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 03 09:56:24 UTC 2023
    - 12K bytes
    - Viewed (0)
  4. src/cmd/go/internal/modfetch/cache.go

    	"golang.org/x/mod/module"
    	"golang.org/x/mod/semver"
    )
    
    func cacheDir(ctx context.Context, path string) (string, error) {
    	if err := checkCacheDir(ctx); err != nil {
    		return "", err
    	}
    	enc, err := module.EscapePath(path)
    	if err != nil {
    		return "", err
    	}
    	return filepath.Join(cfg.GOMODCACHE, "cache/download", enc, "/@v"), nil
    }
    
    func CachePath(ctx context.Context, m module.Version, suffix string) (string, error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 18:15:22 UTC 2024
    - 24.7K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/mod/sumdb/client.go

    			err = fmt.Errorf("%s@%s: %v", path, vers, err)
    		}
    	}()
    
    	if err := c.init(); err != nil {
    		return nil, err
    	}
    
    	// Prepare encoded cache filename / URL.
    	epath, err := module.EscapePath(path)
    	if err != nil {
    		return nil, err
    	}
    	evers, err := module.EscapeVersion(strings.TrimSuffix(vers, "/go.mod"))
    	if err != nil {
    		return nil, err
    	}
    	remotePath := "/lookup/" + epath + "@" + evers
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 08 17:50:49 UTC 2024
    - 19.1K bytes
    - Viewed (0)
  6. samples/bookinfo/src/productpage/static/tailwind/tailwind.css

    gative.map(u=>nh(u,!0)));let s=[...n,...a];return s=MC(i,s),s=s.flatMap(BC),s=s.map(RC),s}function nh(i,e){let t={original:i,base:i,ignore:e,pattern:i,glob:null};return Qd(i)&&Object.assign(t,th(i)),t}function RC(i){let e=yo(i.base);return e=En.escapePath(e),i.pattern=i.glob?`${e}/${i.glob}`:e,i.pattern=i.ignore?`!${i.pattern}`:i.pattern,i}function MC(i,e){let t=[];return i.userConfigPath&&i.tailwindConfig.content.relative&&(t=[Z.dirname(i.userConfigPath)]),e.map(r=>(r.base=Z.resolve(...t,r.base),r))}function...
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 28 14:48:01 UTC 2024
    - 357.1K bytes
    - Viewed (1)
Back to top