httprouter icon indicating copy to clipboard operation
httprouter copied to clipboard

Add RequestParam Helper

Open Mungrel opened this issue 5 years ago • 0 comments

Often only need a single parameter from the request, and this often happens in conjunction with http.Handler use. Regularly doing httprouter.ParamsFromContext(r.Context()).ByName("<some-path-param>") can get repetitive, so usually have something similar to this for convenience.

Mungrel avatar Aug 05 '20 03:08 Mungrel