mirror of
https://github.com/gin-gonic/gin.git
synced 2026-06-12 16:48:19 +08:00
Compare commits
2 Commits
2d1f1ccb16
...
a33a7842b7
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a33a7842b7 | ||
|
|
4400ae8080 |
4
gin.go
4
gin.go
@ -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}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user