Documentation
¶
Overview ¶
Package pathtemplate provides utilities for parsing and matching URI path templates containing capture groups.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MatchResult ¶
type MatchResult struct {
// Captured is the part of the path captured by the {} group.
Captured string
// Rest is the remaining part of the path after the template segments.
Rest string
}
MatchResult contains the result of a successful path match.
type Template ¶
type Template struct {
// contains filtered or unexported fields
}
Template represents a compiled path template.
Click to show internal directories.
Click to hide internal directories.