pretree is a package for storing and querying routing rules with prefix tree .
pretree 是一个用于存储和查询路由规则的包。它用前缀树存储路由规则,支持包含变量的路由。
pretree is a package for storing and querying routing rules. It uses prefix tree to store routing rules and supports routing with variables.
See this document at GoDoc
go get -u github.com/obity/pretree@latest
- Query返回路由中的变量vars存在一个map中.