mirror of
https://github.com/astaxie/beego.git
synced 2024-11-29 17:11:29 +00:00
这种if型的初始化是有问题的
This commit is contained in:
parent
5a1e821a42
commit
50132df809
6
docs.go
6
docs.go
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user