filepathfilter: implement String() on *pathPrefixPattern

This commit is contained in:
Taylor Blau 2017-06-20 17:28:51 -06:00
parent 170a74f991
commit 0651b22936

@ -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