Skip to content

Commit

Permalink
Allow stringifying patterns
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertWHurst committed Jan 16, 2024
1 parent 05e6ad7 commit b74925c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pattern.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down

0 comments on commit b74925c

Please sign in to comment.