swag icon indicating copy to clipboard operation
swag copied to clipboard

swag init

Open Jerry-yz opened this issue 8 months ago • 4 comments

Describe the bug A clear and concise description of what the bug is. when i use swag init generate docs.go, but this file has error, swag.Spec struct has not LeftDelim field and RightDelim field how can i fix it var SwaggerInfo = &swag.Spec{ Version: "", Host: "", BasePath: "", Schemes: []string{}, Title: "", Description: "", InfoInstanceName: "swagger", SwaggerTemplate: docTemplate, LeftDelim: "{{", RightDelim: "}}", } To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Your swag version e.g. 1.4.1 swag version v1.16.3 Your go version e.g. 1.12.0 go version go1.22.3 linux/amd64 Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser: [e.g. chrome, safari]
  • Version: [e.g. 22]

Additional context Add any other context about the problem here.

Jerry-yz avatar Jun 07 '24 07:06 Jerry-yz