Commit 50132df8 authored by nkbai's avatar nkbai

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

parent 5a1e821a
...@@ -21,12 +21,10 @@ import ( ...@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment