Compare commits

...

2 Commits

Author SHA1 Message Date
Arturo Elias
a33a7842b7
Merge 4400ae8080eb726a1365c9f41294193bbc775638 into e88fc8927a52b74f55bec0351604a56ac0aa1c51 2025-11-21 10:24:04 +01:00
arturoeanton
4400ae8080 add ResetTrees in gin.go 2022-01-24 23:57:38 -03:00

4
gin.go
View File

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