用gin-admin-cli生成的项目,在internal\swagger\docs.go 的2014,2015行会多生成2个字段,导致无法编译和运行
// SwaggerInfo holds exported Swagger Info so clients can modify it
var SwaggerInfo = &swag.Spec{
Version: "v1.0.0",
Host: "",
BasePath: "",
Schemes: []string{},
Title: "gozrzsv2",
Description: "go-zrzsv2 API service",
InfoInstanceName: "swagger",
SwaggerTemplate: docTemplate,
LeftDelim: "{{",
RightDelim: "}}",
}
最后2个字段会导致报错
internal\swagger\docs.go:2014:2: unknown field LeftDelim in struct literal of type "github.com/swaggo/swag".Spec internal\swagger\docs.go:2015:2: unknown field RightDelim in struct literal of type "github.com/swaggo/swag".Spec
用gin-admin-cli生成的项目,在internal\swagger\docs.go 的2014,2015行会多生成2个字段,导致无法编译和运行
最后2个字段会导致报错
internal\swagger\docs.go:2014:2: unknown field LeftDelim in struct literal of type "github.com/swaggo/swag".Spec internal\swagger\docs.go:2015:2: unknown field RightDelim in struct literal of type "github.com/swaggo/swag".Spec