aboutsummaryrefslogtreecommitdiff
path: root/pathrouter/here.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/here.go
parent6e5880aca9744d5e21434708f550f383400966e4 (diff)
downloadgo-gg-43a403b45d9644e634c2c560d16331305d83a4b0.tar.gz
pathrouter: remove type Context from public interface
Diffstat (limited to 'pathrouter/here.go')
-rw-r--r--pathrouter/here.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/pathrouter/here.go b/pathrouter/here.go
index bf21016..e0d4eee 100644
--- a/pathrouter/here.go
+++ b/pathrouter/here.go
@@ -4,6 +4,8 @@
package pathrouter
import (
+ "net/http"
+
. "go.xyrillian.de/gg/option"
)
@@ -43,7 +45,7 @@ func here(matcher realMatcher) Matcher {
return realMatcher{
minLength: 0,
maxLength: Some(1),
- accept: func(path []string, rc Context) HandlerFunc {
+ accept: func(path []string, rc routingContext) http.HandlerFunc {
if len(path) == 0 || (len(path) == 1 && path[0] == "") {
return matcher.accept(nil, rc)
}