route

package
v3.1.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 10, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Match

type Match struct {
	Params  Params
	Pattern string
}

type Params

type Params map[string]string

type Route

type Route struct {
	Keys    []string
	Regex   *regexp.Regexp
	Pattern string
}

func NewRoute

func NewRoute(pattern string) *Route

func (*Route) Match

func (route *Route) Match(url string) *Match

func (*Route) Params

func (route *Route) Params(url string) Params

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL