1 2 3 4 5 6 7 8 9 10 11 12 13
package netutil import ( "net/url" ) func ToUrlValues(m map[string]string) url.Values { r := make(url.Values) for k, v := range m { r.Add(k, v) } return r }