Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

engine.Routes() -- Custom function names (need for swagger package) #506

Closed
loopfz opened this issue Jan 6, 2016 · 1 comment · Fixed by #1272
Closed

engine.Routes() -- Custom function names (need for swagger package) #506

loopfz opened this issue Jan 6, 2016 · 1 comment · Fixed by #1272

Comments

@loopfz
Copy link
Contributor

loopfz commented Jan 6, 2016

Writing a package that generates swagger spec using engine.Routes() and reflection, I encountered a fairly specific issue:
All gin.HandlerFunc that are closures will have the same name, not letting me distinguish between them.

Would it be possible to have a Setter to configure custom names for certain gin.HandlerFunc, letting me override runtime.FuncForPC(...).Name() in gin.nameOfFunction() ?

@thinkerou
Copy link
Member

#1272 merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants