Versions in this module Expand all Collapse all v4 v4.7.1 Feb 23, 2023 Changes in this version + const OpCapture + const OpConcatN + const OpEnd + const OpLitPush + const OpNop + const OpPush + const OpPushM + var ErrInvalidPattern = errors.New("invalid pattern") + var ErrNotMatch = errors.New("not match to the path pattern") + type Compiler interface + Compile func() Template + func Parse(tmpl string) (Compiler, error) + type InvalidTemplateError struct + func (e InvalidTemplateError) Error() string + type OpCode int + type Pattern struct + func MustPattern(p Pattern, err error) Pattern + func NewPattern(version int, ops []int, pool []string, verb string, opts ...PatternOpt) (Pattern, error) + func (p Pattern) Match(components []string, verb string) (map[string]string, error) + func (p Pattern) String() string + func (p Pattern) Verb() string + type PatternOpt func(*patternOptions) + func AssumeColonVerbOpt(val bool) PatternOpt + type Template struct + Fields []string + OpCodes []int + Pool []string + Template string + Verb string + Version int