net/url.URL.Path (field)

123 uses

	net/url (current package)
		url.go#L363: 	Path        string    // path (relative paths may omit leading slash)
		url.go#L522: 		url.Path = "*"
		url.go#L681: 	u.Path = path
		url.go#L703: 		if err == nil && p == u.Path {
		url.go#L707: 	if u.Path == "*" {
		url.go#L710: 	return escape(u.Path, encodePath)
		url.go#L821: 			if u.Host != "" || u.Path != "" || u.User != nil {
		url.go#L1089: 		url.Path = ""
		url.go#L1092: 	if ref.Path == "" && ref.RawQuery == "" {

	net/http
		fs.go#L161: 		url := url.URL{Path: name}
		fs.go#L592: 	if strings.HasSuffix(r.URL.Path, indexPage) {
		fs.go#L615: 		url := r.URL.Path
		fs.go#L630: 		url := r.URL.Path
		fs.go#L715: 	if containsDotDot(r.URL.Path) {
		fs.go#L843: 	upath := r.URL.Path
		fs.go#L846: 		r.URL.Path = upath
		request.go#L496: 	return r.Method == "PRI" && len(r.Header) == 0 && r.URL.Path == "*" && r.Proto == "HTTP/2.0"
		request.go#L586: 	} else if r.Method == "CONNECT" && r.URL.Path == "" {
		server.go#L2103: 		p := strings.TrimPrefix(r.URL.Path, prefix)
		server.go#L2105: 		if len(p) < len(r.URL.Path) && (r.URL.RawPath == "" || len(rp) < len(r.URL.RawPath)) {
		server.go#L2110: 			r2.URL.Path = p
		server.go#L2137: 			oldpath := r.URL.Path
		server.go#L2339: 	u = &url.URL{Path: path, RawQuery: u.RawQuery}
		server.go#L2390: 		if u, ok := mux.redirectToPathSlash(r.URL.Host, r.URL.Path, r.URL); ok {
		server.go#L2391: 			return RedirectHandler(u.String(), StatusMovedPermanently), u.Path
		server.go#L2394: 		return mux.handler(r.Host, r.URL.Path)
		server.go#L2400: 	path := cleanPath(r.URL.Path)
		server.go#L2405: 		return RedirectHandler(u.String(), StatusMovedPermanently), u.Path
		server.go#L2408: 	if path != r.URL.Path {
		server.go#L2411: 		url.Path = path
		server.go#L2415: 	return mux.handler(host, r.URL.Path)

	net/http/httputil
		reverseproxy.go#L116: 		return singleJoiningSlash(a.Path, b.Path), ""
		reverseproxy.go#L128: 		return a.Path + b.Path[1:], apath + bpath[1:]
		reverseproxy.go#L130: 		return a.Path + "/" + b.Path, apath + "/" + bpath
		reverseproxy.go#L132: 	return a.Path + b.Path, apath + bpath
		reverseproxy.go#L147: 		req.URL.Path, req.URL.RawPath = joinURLPath(target, req.URL)

	cloud.google.com/go/storage
		post_policy_v4.go#L316: 		Path:    path,
		reader.go#L112: 		Path:   fmt.Sprintf("/%s/%s", o.bucket, o.object),
		storage.go#L555: 	u := &url.URL{Path: opts.Style.path(bucket, name)}
		storage.go#L556: 	u.RawPath = pathEncodeV4(u.Path)
		storage.go#L705: 		Path: fmt.Sprintf("/%s/%s", bucket, name),

	github.com/aws/aws-sdk-go/aws/ec2metadata
		service.go#L101: 		u.Path = ""

	github.com/aws/aws-sdk-go/private/protocol/rest
		build.go#L71: 	r.HTTPRequest.URL.RawPath = r.HTTPRequest.URL.Path
		build.go#L202: 	u.Path = strings.Replace(u.Path, "{"+name+"}", value, -1)
		build.go#L203: 	u.Path = strings.Replace(u.Path, "{"+name+"+}", value, -1)
		build.go#L241: 	hasSlash := strings.HasSuffix(u.Path, "/")
		build.go#L244: 	u.Path = path.Clean(u.Path)
		build.go#L247: 	if hasSlash && !strings.HasSuffix(u.Path, "/") {
		build.go#L248: 		u.Path += "/"

	github.com/evanw/esbuild/pkg/api
		serve_other.go#L92: 			Path:          req.URL.Path,
		serve_other.go#L118: 	if req.Method == "GET" && strings.HasPrefix(req.URL.Path, "/") {
		serve_other.go#L120: 		queryPath := path.Clean(req.URL.Path)[1:]
		serve_other.go#L211: 		if kind == fs.DirEntry && !strings.HasSuffix(req.URL.Path, "/") {
		serve_other.go#L212: 			res.Header().Set("Location", req.URL.Path+"/")

	github.com/go-git/go-git/v5/plumbing/transport
		common.go#L215: 	var res string = u.Path

	github.com/go-git/go-git/v5/plumbing/transport/http
		common.go#L151: 	if !strings.HasSuffix(r.URL.Path, infoRefsPath) {
		common.go#L168: 	s.endpoint.Path = r.URL.Path[:len(r.URL.Path)-len(infoRefsPath)]

	github.com/go-redis/redis/v8
		options.go#L224: 	f := strings.FieldsFunc(u.Path, func(r rune) bool {
		options.go#L235: 		return nil, errors.New("invalid redis URL path: " + u.Path)

	github.com/golang-migrate/migrate/v4/database/postgres
		postgres.go#L122: 		DatabaseName:    purl.Path,

	github.com/golang-migrate/migrate/v4/source/file
		file.go#L35: 		p = u.Host + u.Path

	github.com/jackc/pgconn
		config.go#L424: 	database := strings.TrimLeft(url.Path, "/")

	github.com/lib/pq
		url.go#L65: 	if u.Path != "" {
		url.go#L66: 		accrue("dbname", u.Path[1:])

	go.opencensus.io/plugin/ochttp
		client.go#L70: 	if isHealthEndpoint(req.URL.Path) {
		client_stats.go#L39: 		tag.Upsert(KeyClientPath, req.URL.Path),
		client_stats.go#L40: 		tag.Upsert(Path, req.URL.Path),
		server.go#L96: 	if h.IsHealthEndpoint != nil && h.IsHealthEndpoint(r) || isHealthEndpoint(r.URL.Path) {
		server.go#L152: 		tag.Upsert(Path, r.URL.Path),
		trace.go#L150: 	return req.URL.Path
		trace.go#L158: 		trace.StringAttribute(PathAttribute, r.URL.Path),

	golang.org/x/net/trace
		trace.go#L121: 	_, pat := http.DefaultServeMux.Handler(&http.Request{URL: &url.URL{Path: debugRequestsPath}})

	golang.org/x/pkgsite/internal/cookie
		flash.go#L37: 		Path:    r.URL.Path,

	golang.org/x/pkgsite/internal/frontend
		badge.go#L24: 	path := strings.TrimPrefix(r.URL.Path, "/badge/")
		details.go#L32: 	if r.URL.Path == "/" {
		details.go#L36: 	if strings.HasPrefix(r.URL.Path, "/github.com/golang/go") {
		details.go#L37: 		urlPath := strings.TrimPrefix(strings.TrimPrefix(r.URL.Path, "/github.com/golang/go"), "/src")
		details.go#L45: 	if strings.HasSuffix(r.URL.Path, "/") {
		details.go#L46: 		http.Redirect(w, r, strings.TrimSuffix(r.URL.Path, "/"), http.StatusMovedPermanently)
		details.go#L57: 	urlInfo, err := extractURLPathInfo(r.URL.Path)
		fetch.go#L91: 	defer derrors.Wrap(&err, "serveFetch(%q)", r.URL.Path)
		fetch.go#L104: 	urlInfo, err := extractURLPathInfo(strings.TrimPrefix(r.URL.Path, "/fetch"))
		overview.go#L141: 		parts := strings.Split(destURL.Path, "/")
		overview.go#L146: 		destURL.Path = strings.Join(parts, "/")
		overview.go#L149: 	if destURL.Path == "" {
		overview.go#L163: 	u.Path = strings.TrimSpace(u.Path)
		playground.go#L40: 			req.URL.Path = strings.TrimPrefix(req.URL.Path, "/play")
		redirect.go#L19: 	urlPath := strings.TrimPrefix(r.URL.Path, "/pkg")
		redirect.go#L25: 	urlPath := strings.TrimPrefix(r.URL.Path, "/mod")
		server.go#L131: 		log.Infof(r.Context(), "Request made to %q", r.URL.Path)
		server.go#L196: 	return detailsTTLForPath(r.Context(), r.URL.Path, r.FormValue("tab"))
		unit.go#L105: 		http.Redirect(w, r, r.URL.Path, http.StatusFound)
		unit.go#L153: 					r.URL.Path, um.ModulePath, info.requestedVersion, err)
		unit.go#L161: 		http.Redirect(w, r, r.URL.Path, http.StatusFound)

	golang.org/x/pkgsite/internal/middleware
		betaRedirect.go#L72: 		Path:     sourceURL.Path,
		errorreporting.go#L44: 				Error: fmt.Errorf("handler for %q returned status code %d", r.URL.Path, w2.status),
		iapheader.go#L23: 			if r.URL.Path != "/healthz" {
		requestlog.go#L34: 			msg.WriteString(entry.HTTPRequest.Request.URL.Path + " ")
		requestlog.go#L63: 	if r.Method == http.MethodGet && r.URL.Path == "/healthz" {

	golang.org/x/pkgsite/internal/worker
		server.go#L130: 		log.Infof(r.Context(), "Request made to %q", r.URL.Path)
		server.go#L272: 	if r.URL.Path == "/" {
		server.go#L280: 		log.Infof(r.Context(), "doFetch of %s returned %d; returning that code to retry task", r.URL.Path, code)
		server.go#L285: 		log.Infof(r.Context(), "doFetch of %s returned code %d; returning OK to avoid retry", r.URL.Path, code)
		server.go#L298: 	modulePath, requestedVersion, err := parseModulePathAndVersion(r.URL.Path)
		server.go#L366: 	defer derrors.Wrap(&err, "handlePollIndex(%q)", r.URL.Path)
		server.go#L405: 	defer derrors.Wrap(&err, "handleEnqueue(%q)", r.URL.Path)
		server.go#L575: 	modulePath, version, err := parseModulePathAndVersion(r.URL.Path)

	google.golang.org/api/googleapi
		googleapi.go#L303: 	escaped, unescaped, err := uritemplates.Expand(u.Path, expansions)
		googleapi.go#L305: 		u.Path = unescaped

	google.golang.org/grpc
		rpc_util.go#L841: 		addr = t.Path

	google.golang.org/grpc/internal/credentials
		spiffe.go#L49: 		if len(uri.Host) == 0 || len(uri.RawPath) == 0 || len(uri.Path) == 0 {

	google.golang.org/grpc/internal/transport
		handler_server.go#L361: 		method:         req.URL.Path,