diff options
author | 2016-03-19 11:20:43 +0000 | |
---|---|---|
committer | 2016-03-19 11:20:43 +0000 | |
commit | 19ea6c2a301c772dff0eaedabda9a11f89030e96 (patch) | |
tree | 586c2e59bc6adbe64f4ca4561038a917266ce95d /middleware/path.go | |
parent | 3511c87d03de75b0f7206fe266e70791d6088835 (diff) | |
parent | 39dbd447b5214bf8c3d25f09b91351fa18062e57 (diff) | |
download | coredns-19ea6c2a301c772dff0eaedabda9a11f89030e96.tar.gz coredns-19ea6c2a301c772dff0eaedabda9a11f89030e96.tar.zst coredns-19ea6c2a301c772dff0eaedabda9a11f89030e96.zip |
Merge pull request #19 from miekg/middleware/log
Fix middleware log
Diffstat (limited to 'middleware/path.go')
-rw-r--r-- | middleware/path.go | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/middleware/path.go b/middleware/path.go deleted file mode 100644 index 1ffb64b76..000000000 --- a/middleware/path.go +++ /dev/null @@ -1,18 +0,0 @@ -package middleware - -import "strings" - - -// TODO(miek): matches for names. - -// Path represents a URI path, maybe with pattern characters. -type Path string - -// Matches checks to see if other matches p. -// -// Path matching will probably not always be a direct -// comparison; this method assures that paths can be -// easily and consistently matched. -func (p Path) Matches(other string) bool { - return strings.HasPrefix(string(p), other) -} |