Skip to content

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.

1 participant