From b74925cd40ca86d0060bd4d5053f15f780a30494 Mon Sep 17 00:00:00 2001 From: Robert Hurst Date: Tue, 16 Jan 2024 01:43:24 -0800 Subject: [PATCH] Allow stringifying patterns --- pattern.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pattern.go b/pattern.go index d79403d..07badfa 100644 --- a/pattern.go +++ b/pattern.go @@ -40,6 +40,10 @@ func (p *Pattern) Match(path string) (map[string]string, bool) { return params, true } +func (p *Pattern) String() string { + return p.str +} + type chunkKind int const (