You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I have a route with query inside, and I would like to generate a URL for reference but I can't find a way to retrieve the query template:
r := mux.NewRouter()
p := r.Path("/api").Queries("foo", "{foo}", "bar", "{bar}")
fmt.Println(p.GetPathTemplate()) // only returns "/api", but not "/api?foo={foo}&bar={bar}"
may it be better if GetPathTemplate() also returns the query template, or add a new GetQueriesTemplate() ?