Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for ExampleValues_Encode (0.18 sec)

  1. src/net/url/example_test.go

    	v.Add("cat sounds", "mew")
    	v.Add("cat sounds", "mau")
    	fmt.Println(v["cat sounds"])
    
    	v.Del("cat sounds")
    	fmt.Println(v["cat sounds"])
    
    	// Output:
    	// [meow mew mau]
    	// []
    }
    
    func ExampleValues_Encode() {
    	v := url.Values{}
    	v.Add("cat sounds", "meow")
    	v.Add("cat sounds", "mew/")
    	v.Add("cat sounds", "mau$")
    	fmt.Println(v.Encode())
    
    	// Output:
    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