mirror of
https://github.com/gin-gonic/gin.git
synced 2026-07-20 19:21:22 +08:00
Merge 4400ae8080eb726a1365c9f41294193bbc775638 into 8763f33c65f7df8be5b9fe7504ab7fcf20abb41d
This commit is contained in:
commit
0d8773db3a
4
gin.go
4
gin.go
@ -245,6 +245,10 @@ func (engine *Engine) allocateContext(maxParams uint16) *Context {
|
||||
return &Context{engine: engine, params: &v, skippedNodes: &skippedNodes}
|
||||
}
|
||||
|
||||
func (e *Engine) ResetTrees() {
|
||||
e.trees = make(methodTrees, 0, 9)
|
||||
}
|
||||
|
||||
// Delims sets template left and right delims and returns an Engine instance.
|
||||
func (engine *Engine) Delims(left, right string) *Engine {
|
||||
engine.delims = render.Delims{Left: left, Right: right}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user