Skip to content
/ pretree Public

pretree is a package for storing and querying routing rules with prefix tree .

License

Notifications You must be signed in to change notification settings

obity/pretree

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pretree

GitHub release Released API docs Build Go Report Card Lines of code Languages GitHub go.mod Go version (subdirectory of monorepo) GPL3 licensed

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.

Doc

See this document at GoDoc

Install

go get -u github.com/obity/pretree@latest

ToDo

  • Query返回路由中的变量vars存在一个map中.