I follow the instructions to create the swagger specification here https://goswagger.io/generate/spec.html .
I have an existing project that requires an interface for the API. I want to use go swagger, but I'm completely confused https://github.com/go-swagger/go-swagger/tree/master/examples/todo-list
I want to configure it to add annotations to the code and then run the command swagger generate spec, and it will generate the spec. However, whenever I run it, it prints{"swagger":"2.0","paths":{},"definitions":{}}
This is my team to run
...com/projectFolder]$ swagger generate spec
{"swagger":"2.0","paths":{},"definitions":{}}
My project structure is as follows
project/
main.go
api/
router.go
In main.go I have this annotation
package main
In the router above one of my handlers, I have this annotation
r.GET("/profile", profileHandler
, api . . , , , .