mirror of
https://github.com/astaxie/beego.git
synced 2025-07-16 02:22:15 +00:00
reduce the slicegrow
This commit is contained in:
3
tree.go
3
tree.go
@@ -288,7 +288,8 @@ func (t *Tree) Match(pattern string, ctx *context.Context) (runObject interface{
|
||||
if len(pattern) == 0 || pattern[0] != '/' {
|
||||
return nil
|
||||
}
|
||||
return t.match(pattern, nil, ctx)
|
||||
w := make([]string, 0, 20)
|
||||
return t.match(pattern, w, ctx)
|
||||
}
|
||||
|
||||
func (t *Tree) match(pattern string, wildcardValues []string, ctx *context.Context) (runObject interface{}) {
|
||||
|
Reference in New Issue
Block a user