diff options
Diffstat (limited to 'pathrouter/choice.go')
| -rw-r--r-- | pathrouter/choice.go | 3 |
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 { |
