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

added the astFile to the FuncInfo returned by docgen.GetFuncInfo() #19

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

e-nikolov
Copy link

I wrote https://github.com/go-chai/chai, which is an extension for chi that provides support for type safe http handlers via generics. This allows it to also provide swagger spec generation that automatically detects the request/response types, http methods and route paths.

In there I use docgen.GetFuncInfo(), but I also need the astFile which docgen uses internally but does not return. I think the astFile could be useful for other purposes as well and this PR implements that so that people like me don't have to keep a slightly modified copy of it.

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

Successfully merging this pull request may close these issues.

None yet

1 participant