Documentation ¶ Overview ¶ from https://github.com/pillarjs/path-to-regexp/tree/c7ec332e87d8560673884d5629e1cb23cb03cb87 Index ¶ func Matcher(expr string) (func(string, map[any]string) bool, error) func PathToRegexp(path string, keys *[]Key) (*regexp.Regexp, error) type Key type Token type TokensToRegexpOptions Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Matcher ¶ func Matcher(expr string) (func(string, map[any]string) bool, error) func PathToRegexp ¶ func PathToRegexp(path string, keys *[]Key) (*regexp.Regexp, error) Types ¶ type Key ¶ type Key struct { Name any Prefix string Suffix string Pattern string Modifier string } type Token ¶ type Token any type TokensToRegexpOptions ¶ type TokensToRegexpOptions struct { Prefixes string Delimiter string Strict bool Start bool End bool Encode func(string) string EndsWith string } Source Files ¶ View all Source files pathtoparam.go Click to show internal directories. Click to hide internal directories.