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