1
0
mirror of https://github.com/astaxie/beego.git synced 2024-06-26 15:14:14 +00:00

Revert "这种if型的初始化是有问题的"

This reverts commit 50132df809.
This commit is contained in:
nkbai 2015-11-26 20:37:36 +08:00
parent 6aaca2eca8
commit d693ecf046

View File

@ -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) {