github.com/gmemcc/yaegi@v0.12.1-0.20221128122509-aa99124c5d16/_test/map28.go (about) 1 package main 2 3 import ( 4 "net/url" 5 ) 6 7 func main() { 8 value1 := url.Values{} 9 10 value1.Set("first", "v1") 11 value1.Set("second", "v2") 12 13 l := 0 14 for k, v := range value1 { 15 l += len(k) + len(v) 16 } 17 println(l) 18 } 19 20 // Output: 21 // 13