Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for ExampleValues_Get (0.16 sec)

  1. src/net/url/example_test.go

    	v.Add("cat sounds", "meow")
    	v.Add("cat sounds", "mew/")
    	v.Add("cat sounds", "mau$")
    	fmt.Println(v.Encode())
    
    	// Output:
    	// cat+sounds=meow&cat+sounds=mew%2F&cat+sounds=mau%24
    }
    
    func ExampleValues_Get() {
    	v := url.Values{}
    	v.Add("cat sounds", "meow")
    	v.Add("cat sounds", "mew")
    	v.Add("cat sounds", "mau")
    	fmt.Printf("%q\n", v.Get("cat sounds"))
    	fmt.Printf("%q\n", v.Get("dog sounds"))
    
    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