Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for ExampleParseQuery (0.2 sec)

  1. src/net/url/example_test.go

    	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))
    	// Output:
    	// {"x":["1"], "y":["2", "3"]}
    }
    
    func ExampleURL_EscapedPath() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 7.2K bytes
    - Viewed (0)
Back to top