Skip to content

Commit

Permalink
fix composite literal uses unkeyed fields warnings, gin-gonic#1050 (g…
Browse files Browse the repository at this point in the history
  • Loading branch information
easonlin404 authored and appleboy committed Aug 2, 2017
1 parent df37e74 commit 4b54b86
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gin.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ func New() *Engine {
UseRawPath: false,
UnescapePathValues: true,
trees: make(methodTrees, 0, 9),
delims: render.Delims{"{{", "}}"},
delims: render.Delims{Left: "{{", Right: "}}"},
secureJsonPrefix: "while(1);",
}
engine.RouterGroup.engine = engine
Expand All @@ -143,7 +143,7 @@ func (engine *Engine) allocateContext() *Context {
}

func (engine *Engine) Delims(left, right string) *Engine {
engine.delims = render.Delims{left, right}
engine.delims = render.Delims{Left: left, Right: right}
return engine
}

Expand Down

0 comments on commit 4b54b86

Please sign in to comment.