From 0651b22936e181d9d94db570a438b0072b1af4df Mon Sep 17 00:00:00 2001 From: Taylor Blau Date: Tue, 20 Jun 2017 17:28:51 -0600 Subject: [PATCH] filepathfilter: implement String() on *pathPrefixPattern --- filepathfilter/filepathfilter.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/filepathfilter/filepathfilter.go b/filepathfilter/filepathfilter.go index d3fbab6c..a6b38c38 100644 --- a/filepathfilter/filepathfilter.go +++ b/filepathfilter/filepathfilter.go @@ -148,6 +148,12 @@ func (p *pathPrefixPattern) Match(name string) bool { return matched } +// String returns a string representation of the underlying pattern for which +// this *pathPrefixPattern is matching. +func (p *pathPrefixPattern) String() string { + return p.rawPattern +} + type pathPattern struct { rawPattern string prefix string