//
pkg.gl
Category
github.com/issue9/mux/v2
internal
tree
package
2.3.6
Repository:
https://github.com/issue9/mux.git
Documentation:
pkg.go.dev
Overview
Versions
9
Dependencies
9
Dependents
1
Files
414 SLOC
#
Functions
New
New 声明一个 Tree 实例.
#
Structs
Tree
Tree 以树节点的形式保存的路由 多段路由项,会提取其中的相同的内容组成树状结构的节点。 比如以下路由项: /posts/{id}/author /posts/{id}/author/emails /posts/{id}/author/profile /posts/1/author 会被转换成以下结构 /posts | +---- 1/author | +---- {id}/author | +---- /profile | +---- /emails.