summaryrefslogtreecommitdiff
path: root/modules/caddyhttp/matchers.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/caddyhttp/matchers.go')
-rw-r--r--modules/caddyhttp/matchers.go14
1 files changed, 7 insertions, 7 deletions
diff --git a/modules/caddyhttp/matchers.go b/modules/caddyhttp/matchers.go
index 21cc19f..731832b 100644
--- a/modules/caddyhttp/matchers.go
+++ b/modules/caddyhttp/matchers.go
@@ -139,11 +139,11 @@ func (m matchHeader) Match(r *http.Request) bool {
// Interface guards
var (
- _ RouteMatcher = matchHost{}
- _ RouteMatcher = matchPath{}
- _ RouteMatcher = matchMethod{}
- _ RouteMatcher = matchQuery{}
- _ RouteMatcher = matchHeader{}
- _ RouteMatcher = new(matchProtocol)
- _ RouteMatcher = new(matchScript)
+ _ RouteMatcher = (*matchHost)(nil)
+ _ RouteMatcher = (*matchPath)(nil)
+ _ RouteMatcher = (*matchMethod)(nil)
+ _ RouteMatcher = (*matchQuery)(nil)
+ _ RouteMatcher = (*matchHeader)(nil)
+ _ RouteMatcher = (*matchProtocol)(nil)
+ _ RouteMatcher = (*matchScript)(nil)
)