httprouter
httprouter copied to clipboard
Add RequestParam Helper
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.