After upgrading swag to the latest version, run swag init, and report the following error after running the program:
docs/docs.go:3338:2: unknown field 'LeftDelim' in struct literal of type "github.com/swaggo/swag".Spec
docs/docs.go:3339:2: unknown field 'RightDelim' in struct literal of type "github.com/swaggo/swag".Spec
The relevant codes for docs/docs.go:3338-3339 are as follows:
// SwaggerInfo holds exported Swagger Info so clients can modify it
var SwaggerInfo = &swag.Spec{
...
LeftDelim: "{{",
RightDelim: "}}",
}
After upgrading swag to the latest version, run swag init, and report the following error after running the program:
docs/docs.go:3338:2: unknown field 'LeftDelim' in struct literal of type "github.com/swaggo/swag".Spec docs/docs.go:3339:2: unknown field 'RightDelim' in struct literal of type "github.com/swaggo/swag".Spec
The relevant codes for docs/docs.go:3338-3339 are as follows: // SwaggerInfo holds exported Swagger Info so clients can modify it var SwaggerInfo = &swag.Spec{ ... LeftDelim: "{{", RightDelim: "}}", }