diff --git a/fox.go b/fox.go index 3c4ce47..e224592 100644 --- a/fox.go +++ b/fox.go @@ -421,6 +421,7 @@ func (fox *Router) newRoute(pattern string, handler HandlerFunc, opts ...RouteOp return rte, n, nil } +// getRoot load the tree atomically. func (fox *Router) getRoot() *iTree { r := fox.tree.Load() return r