From d693ecf046be6cae8af4b879a0293694c05e130d Mon Sep 17 00:00:00 2001 From: nkbai Date: Thu, 26 Nov 2015 20:37:36 +0800 Subject: [PATCH] =?UTF-8?q?Revert=20"=E8=BF=99=E7=A7=8Dif=E5=9E=8B?= =?UTF-8?q?=E7=9A=84=E5=88=9D=E5=A7=8B=E5=8C=96=E6=98=AF=E6=9C=89=E9=97=AE?= =?UTF-8?q?=E9=A2=98=E7=9A=84"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 50132df809e73105b1f4a96971627f9ea94e63ef. --- docs.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs.go b/docs.go index a660ddeb..1dbed6cc 100644 --- a/docs.go +++ b/docs.go @@ -21,10 +21,12 @@ import ( ) // GlobalDocAPI store the swagger api documents -var GlobalDocAPI map[string]interface{}=make(map[string]interface{}) +var GlobalDocAPI map[string]interface{} func init() { - + if EnableDocs { + GlobalDocAPI = make(map[string]interface{}) + } } func serverDocs(ctx *context.Context) {