Merge 4400ae8080eb726a1365c9f41294193bbc775638 into 5260de6a83283abb87e827130accd495ad543cf3

This commit is contained in:
Arturo Elias 2026-02-18 19:52:01 -08:00 committed by GitHub
commit 2d1f1ccb16
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

4
gin.go
View File

@ -255,6 +255,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}