Versions in this module Expand all Collapse all v5 v5.0.0 Jan 9, 2020 Changes in this version + const Version + func Compile(str string, o *Options) (func(interface{}) string, error) + func DecodeURIComponent(str string) string + func EncodeURIComponent(str string) string + func Match(path interface{}, o *Options) (func(string) *MatchResult, error) + func Must(r *regexp2.Regexp, err error) *regexp2.Regexp + func MustCompile(str string, o *Options) func(interface{}) string + func MustMatch(path interface{}, o *Options) func(string) *MatchResult + func Parse(str string, o *Options) []interface + func PathToRegexp(path interface{}, tokens *[]Token, options *Options) (*regexp2.Regexp, error) + type MatchResult struct + Index int + Params map[interface{}]interface{} + Path string + type Options struct + Decode func(str string, token interface{}) string + Delimiter string + Encode func(uri string, token interface{}) string + End *bool + EndsWith interface{} + Sensitive bool + Start *bool + Strict bool + Validate *bool + Whitelist []string + type Token struct + Delimiter string + Name interface{} + Optional bool + Pattern string + Prefix string + Repeat bool Other modules containing this package github.com/soongo/path-to-regexp