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
I think what you are asking about is httprouter.Params. Say you have this route /api/users/:userId you could access userId in your handler as shown below.
func users(w http.ResponseWriter, r *http.Request, p httprouter.Params) {
userId: = p.ByName("userid")
}
I'd like to handle an HTTP GET request, like this:
/search/projects?page=0&min=0&max=10000&ids=57,28,55,53,51,611,619,610,578,96,4,177
As far as I see in the docs only one parameter is mentioned in get requests. So I'm wondering how can I achieve a multi-parameter GET?
The text was updated successfully, but these errors were encountered: