Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for ResolveReference (0.79 sec)

  1. src/cmd/vendor/golang.org/x/tools/go/analysis/internal/analysisflags/url.go

    		return "", fmt.Errorf("invalid Diagnostic.URL %q: %s", raw, err)
    	}
    	base, err := url.Parse(a.URL)
    	if err != nil {
    		return "", fmt.Errorf("invalid Analyzer.URL %q: %s", a.URL, err)
    	}
    	return base.ResolveReference(u).String(), nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 09 01:28:01 UTC 2023
    - 901 bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/tools/go/analysis/diagnostic.go

    	// Analysis driver should treat the URL as "#"+Category.
    	//
    	// The URL may be relative. If so, the base URL is that of the
    	// Analyzer that produced the diagnostic;
    	// see https://pkg.go.dev/net/url#URL.ResolveReference.
    	URL string
    
    	// SuggestedFixes is an optional list of fixes to address the
    	// problem described by the diagnostic, each one representing
    	// an alternative strategy; at most one may be applied.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  3. src/net/url/url.go

    // failure, otherwise its return value is the same as [URL.ResolveReference].
    func (u *URL) Parse(ref string) (*URL, error) {
    	refURL, err := Parse(ref)
    	if err != nil {
    		return nil, err
    	}
    	return u.ResolveReference(refURL), nil
    }
    
    // ResolveReference resolves a URI reference to an absolute URI from
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:53 UTC 2024
    - 36.1K bytes
    - Viewed (0)
  4. src/net/url/url_test.go

    		base := mustParse(test.base)
    		rel := mustParse(test.rel)
    		url := base.ResolveReference(rel)
    		if got := url.String(); got != test.expected {
    			t.Errorf("URL(%q).ResolveReference(%q)\ngot  %q\nwant %q", test.base, test.rel, got, test.expected)
    		}
    		// Ensure that new instances are returned.
    		if base == url {
    			t.Errorf("Expected URL.ResolveReference to return new URL instance.")
    		}
    		// Test the convenience wrapper too.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:52:38 UTC 2024
    - 52.1K bytes
    - Viewed (0)
  5. src/net/url/example_test.go

    	u, err := url.Parse("../../..//search?q=dotnet")
    	if err != nil {
    		log.Fatal(err)
    	}
    	base, err := url.Parse("http://example.com/directory/")
    	if err != nil {
    		log.Fatal(err)
    	}
    	fmt.Println(base.ResolveReference(u))
    	// Output:
    	// http://example.com/search?q=dotnet
    }
    
    func ExampleParseQuery() {
    	m, err := url.ParseQuery(`x=1&y=2&y=3`)
    	if err != nil {
    		log.Fatal(err)
    	}
    	fmt.Println(toJSON(m))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 7.2K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    		{"(*URL).Parse", Method, 0},
    		{"(*URL).Port", Method, 8},
    		{"(*URL).Query", Method, 0},
    		{"(*URL).Redacted", Method, 15},
    		{"(*URL).RequestURI", Method, 0},
    		{"(*URL).ResolveReference", Method, 0},
    		{"(*URL).String", Method, 0},
    		{"(*URL).UnmarshalBinary", Method, 8},
    		{"(*Userinfo).Password", Method, 0},
    		{"(*Userinfo).String", Method, 0},
    		{"(*Userinfo).Username", Method, 0},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 534.2K bytes
    - Viewed (0)
  7. api/go1.txt

    pkg net/url, method (*URL) IsAbs() bool
    pkg net/url, method (*URL) Parse(string) (*URL, error)
    pkg net/url, method (*URL) Query() Values
    pkg net/url, method (*URL) RequestURI() string
    pkg net/url, method (*URL) ResolveReference(*URL) *URL
    pkg net/url, method (*URL) String() string
    pkg net/url, method (*Userinfo) Password() (string, bool)
    pkg net/url, method (*Userinfo) String() string
    pkg net/url, method (*Userinfo) Username() string
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 14 18:58:28 UTC 2013
    - 1.7M bytes
    - Viewed (0)
Back to top