Registry / web-framework / revel-pathtree

revel-pathtree

JSON →
library0.0.0-20140121041023-41257a1839e9gogounverified

A fast path lookup tree for routing HTTP requests with support for wildcards and extensions.

go get github.com/revel/pathtree
INSTALL
IMPORT
SIG · REVEL-PATHTREE
R
revel-pathtree
web-frameworkgov0.0.0-20140121041023-41257a1839e9
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

pathtree
github.com/revel/pathtree

Creates a path tree and looks up a route with a wildcard parameter.

package main import ( "fmt" "github.com/revel/pathtree" ) func main() { tree := pathtree.New() tree.Add("/users/:id", nil) _, params := tree.Lookup("/users/123") fmt.Printf("Params: %+v\n", params) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20140121041023-41257a1839e9latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources
revel-pathtree — go get revel-pathtree · libregistry