I am using the built- in net/http router. If the url is
I have used
strings.Trim(r.URL.Path, "/") to get path product and
r.URL.Query().Get("id") to get the value 10
But I have found no way to get the corresponding path using Gorilla Mux. Or
How do I get the path using the other routers?