Commit d693ecf0 authored by nkbai's avatar nkbai

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

This reverts commit 50132df8.
parent 6aaca2ec
......@@ -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) {
......
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