swaggo / gin-swagger

gin middleware to automatically generate RESTful API documentation with Swagger 2.0.
MIT License
3.76k stars 270 forks source link

Register called twice for swag #239

Open kaivalya-mi opened 2 years ago

kaivalya-mi commented 2 years ago

I am facing the issue related to swagger after generating swagger docs successfully while we were trying to run server.

panic: Register called twice for swag: swagger

goroutine 1 [running]: github.com/swaggo/swag.Register({0x11af5ce, 0x7}, {0x1566dc0, 0x24fac20}) /home/mind/go/pkg/mod/github.com/swaggo/swag@v1.8.6/swagger.go:36 +0x169 qalort_services/payment-api/docs.init.0() /home/mind/go/src/qalort_services/payment-api/docs/docs.go:341 +0x2f exit status 2

Any Help will be appreciated. Thank you.