MCPcopy 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
23func 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

newTestRouterFunction · 0.85
NewFunction · 0.85
UseMethod · 0.85

Calls

no outgoing calls

Tested by 1

newTestRouterFunction · 0.68