Skip to content

Commit

Permalink
upsome for router settings
Browse files Browse the repository at this point in the history
  • Loading branch information
inhere committed Aug 8, 2020
1 parent 4590780 commit f5837e8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions router.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,8 @@ type Router struct {

// storage named routes. {"name": Route}
namedRoutes map[string]*Route
// TODO pool for storage MatchResult
// matchResultPool sync.Pool

// some data for group
currentGroupPrefix string
Expand Down Expand Up @@ -192,6 +194,11 @@ func New(options ...func(*Router)) *Router {
return &Context{index: -1, router: router}
}

// match result pool
// router.matchResultPool.New = func() interface{} {
// return &MatchResult{Status: Found}
// }

return router
}

Expand Down

0 comments on commit f5837e8

Please sign in to comment.