It seems that URL does not support matrix parameters
// From net/url
type URL struct {
Scheme string
Opaque string // encoded opaque data
User *Userinfo // username and password information
Host string // host or host:port
Path string
RawQuery string // encoded query values, without '?'
Fragment string // fragment for references, without '#'
}
- Why ?
- How can I extract matrix parameters from an URL ? and when should I use them instead of using requests parameters embedded in the
request.URL.RawQuery
part of the URL ?
The parameters end up getting put in
url.Path
. Here's a function which can put them in theQuery
for you: