golang和地图中的URL查询字符串

Is it possible for Go's URL package to understand a map as a query parameter when using the Query method? Other languages would understand something like filter_by[locale]=en_GB&filter_by[test]=yes&foo=12. The Query method seems to interpret this as map[filter_by[locale]:[en_GB] filter_by[test]:[yes] foobar:[12]] I'm trying to pass along some filter names and values for a GET request.

Thanks

The problem here is that param may be array, like:

localhost:8000?foo[]=foo&foo[]=bar

and in this case you have to have map[string][]string so out of box you have this, and for example upper you'll have:

url.Values{"foo[]":[]string{"foo", "bar"}}