1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-29 17:11:29 +00:00

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

This commit is contained in:
nkbai 2015-11-20 21:34:01 +08:00
parent 5a1e821a42
commit 50132df809

View File

@ -21,12 +21,10 @@ import (
) )
// GlobalDocAPI store the swagger api documents // GlobalDocAPI store the swagger api documents
var GlobalDocAPI map[string]interface{} var GlobalDocAPI map[string]interface{}=make(map[string]interface{})
func init() { func init() {
if EnableDocs {
GlobalDocAPI = make(map[string]interface{})
}
} }
func serverDocs(ctx *context.Context) { func serverDocs(ctx *context.Context) {