swaggo / gin-swagger

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

How to automatically add comments to API source code? #304

Open zrcoder opened 3 weeks ago

zrcoder commented 3 weeks ago

Is there a tool to do this?

or embed the feature in the swag cli, for example, we can type swag init --frame-work gin, then the cli will generate comments for the code and the doc files.