diff options
| author | Stefan Majewsky <majewsky@gmx.net> | 2026-10-05 22:21:26 +0200 |
|---|---|---|
| committer | Stefan Majewsky <majewsky@gmx.net> | 2026-10-05 22:21:26 +0200 |
| commit | 43a403b45d9644e634c2c560d16331305d83a4b0 (patch) | |
| tree | 8ec3825579b388c205edfebed76b04906ae5368f /benchmark/pathrouter | |
| parent | 6e5880aca9744d5e21434708f550f383400966e4 (diff) | |
| download | go-gg-43a403b45d9644e634c2c560d16331305d83a4b0.tar.gz | |
pathrouter: remove type Context from public interface
Diffstat (limited to 'benchmark/pathrouter')
| -rw-r--r-- | benchmark/pathrouter/pathrouter_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/benchmark/pathrouter/pathrouter_test.go b/benchmark/pathrouter/pathrouter_test.go index 361cc2f..7eefc43 100644 --- a/benchmark/pathrouter/pathrouter_test.go +++ b/benchmark/pathrouter/pathrouter_test.go @@ -62,9 +62,9 @@ func buildMuxRouterForDistributionAPI() http.Handler { } func buildPathrouterForDistributionAPI() http.Handler { - handle := func(endpointName string) pr.HandlerFunc { + handle := func(endpointName string) http.HandlerFunc { msg := endpointName + " is forbidden" - return func(w http.ResponseWriter, r *http.Request, vars map[string]string) { + return func(w http.ResponseWriter, r *http.Request) { http.Error(w, msg, http.StatusForbidden) } } |
