You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Currently function declared by var is ignored. But it indeed is a function, which might act as an API handler. The example below shows the case.
package main
funcf() {}
// GetSth godocvarGetSth=f
Furthermore, any variable pointing directly or indirectly to a function should not be ignored, and it's swag comment should be handled correctly.
package main
funcf() {}
// F1 godocvarF1=f// F2 godocvarF2=f1// F3 godocvarF3=f2
To Reproduce
see above
Expected behavior
expect swag would generate docs realted to function declared by var
Screenshots
If applicable, add screenshots to help explain your problem.
Your swag version
e.g. 1.8.12
Your go version
e.g. 1.19
Desktop (please complete the following information):
OS: mac
Browser: firefox
Version: [e.g. 22]
Additional context
no more context
The text was updated successfully, but these errors were encountered:
Describe the bug
Currently function declared by
var
is ignored. But it indeed is a function, which might act as an API handler. The example below shows the case.Furthermore, any variable pointing directly or indirectly to a function should not be ignored, and it's swag comment should be handled correctly.
To Reproduce
see above
Expected behavior
expect swag would generate docs realted to function declared by
var
Screenshots
If applicable, add screenshots to help explain your problem.
Your swag version
e.g. 1.8.12
Your go version
e.g. 1.19
Desktop (please complete the following information):
Additional context
no more context
The text was updated successfully, but these errors were encountered: