swaggo / swag

Automatically generate RESTful API documentation with Swagger 2.0 for Go.
MIT License
10.24k stars 1.17k forks source link

API operation annotations must be followed by a func? #1837

Open armourstill opened 3 weeks ago

armourstill commented 3 weeks ago

Is your feature request related to a problem? Please describe. My API described as below.

// API operation annotations
var MyFunc func(*gin.Context)

Can swag generate a doc with it? I have some different implements about this API.

Describe the solution you'd like A clear and concise description of what you want to happen.

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

Additional context Add any other context or screenshots about the feature request here.