aboutsummaryrefslogtreecommitdiff
path: root/pathrouter/choice.go
diff options
context:
space:
mode:
authorStefan Majewsky <majewsky@gmx.net>2026-10-05 22:21:26 +0200
committerStefan Majewsky <majewsky@gmx.net>2026-10-05 22:21:26 +0200
commit43a403b45d9644e634c2c560d16331305d83a4b0 (patch)
tree8ec3825579b388c205edfebed76b04906ae5368f /pathrouter/choice.go
parent6e5880aca9744d5e21434708f550f383400966e4 (diff)
downloadgo-gg-43a403b45d9644e634c2c560d16331305d83a4b0.tar.gz
pathrouter: remove type Context from public interface
Diffstat (limited to 'pathrouter/choice.go')
-rw-r--r--pathrouter/choice.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/pathrouter/choice.go b/pathrouter/choice.go
index d107785..ee64151 100644
--- a/pathrouter/choice.go
+++ b/pathrouter/choice.go
@@ -4,6 +4,7 @@
package pathrouter
import (
+ "net/http"
"slices"
. "go.xyrillian.de/gg/option"
@@ -48,7 +49,7 @@ func choice(matchers []realMatcher) Matcher {
return realMatcher{
minLength: slices.Min(minLengths),
maxLength: maxLength,
- accept: func(path []string, rc Context) HandlerFunc {
+ accept: func(path []string, rc routingContext) http.HandlerFunc {
for _, m := range matchers {
hf := m.accept(path, rc)
if hf != nil {