From e7e1996f4689d3d2f8d361d97e1ca175984be15b Mon Sep 17 00:00:00 2001 From: bestgopher <84328409@qq.com> Date: Tue, 5 May 2020 17:17:48 +0800 Subject: [PATCH] add a method to set the indentJsonIndentString used in Context.IndentedJSON --- gin.go | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/gin.go b/gin.go index ecb50bdb..76e8d9e3 100644 --- a/gin.go +++ b/gin.go @@ -107,16 +107,16 @@ type Engine struct { // See the PR #1817 and issue #1644 RemoveExtraSlash bool - delims render.Delims - secureJSONPrefix string - HTMLRender render.HTMLRender - FuncMap template.FuncMap - allNoRoute HandlersChain - allNoMethod HandlersChain - noRoute HandlersChain - noMethod HandlersChain - pool sync.Pool - trees methodTrees + delims render.Delims + secureJSONPrefix string + HTMLRender render.HTMLRender + FuncMap template.FuncMap + allNoRoute HandlersChain + allNoMethod HandlersChain + noRoute HandlersChain + noMethod HandlersChain + pool sync.Pool + trees methodTrees indentJsonIndentString string }