Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for ExampleValues_Add (0.13 sec)

  1. src/net/url/example_test.go

    	fmt.Println(v.Get("name"))
    	fmt.Println(v.Get("friend"))
    	fmt.Println(v["friend"])
    	// Output:
    	// Ava
    	// Jess
    	// [Jess Sarah Zoe]
    }
    
    func ExampleValues_Add() {
    	v := url.Values{}
    	v.Add("cat sounds", "meow")
    	v.Add("cat sounds", "mew")
    	v.Add("cat sounds", "mau")
    	fmt.Println(v["cat sounds"])
    
    	// Output:
    	// [meow mew mau]
    }
    
    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