Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/BryanMwangi/pine
/ newRouter
Function
newRouter
router.go:23–25 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
21
}
22
23
func
newRouter() *Router {
24
return
&Router{root: &node{}}
25
}
26
27
// Insert registers handlers for a given HTTP method and path.
28
// Segments starting with ':' are treated as named parameters.
Callers
3
newTestRouter
Function · 0.85
New
Function · 0.85
Use
Method · 0.85
Calls
no outgoing calls
Tested by
1
newTestRouter
Function · 0.68