package
Version:
v0.0.0-...-c18a219
Opens a new window with list of versions in this module.
Published: Nov 20, 2023
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Options represents route tree options.
type Route interface {
Path() string
Handler() interface{}
Params() []string
URL(params ...interface{}) string
}
Tree represents a route tree based on Trie data structure.
New creates a route tree.
Add register a route with specific methods to the tree.
Find tries to find a matched route in the tree.
MaxParam returns max parameters of all routes.
Walk traverses all route nodes of tree.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.