We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
interfacer
Is it possible to include parameter names when generating an interface using interfacer?
Currently, all the function parameter names are stripped so
FooBar(ctx context.Context, eventContext string, includePrivate bool, includeGeo bool)
becomes
FooBar(ctx, string, bool, bool)
which is much harder to work with.
The text was updated successfully, but these errors were encountered:
I would prefer this too :)
Sorry, something went wrong.
Overall this is good idea, I am not sure go/types gives you the name of the arguments in a typed func def. This needs to be researched.
Mockgen does this for generated mocks arg names, so maybe it's a good reference for how to achieve it?
No branches or pull requests
Is it possible to include parameter names when generating an interface using
interfacer
?Currently, all the function parameter names are stripped so
becomes
which is much harder to work with.
The text was updated successfully, but these errors were encountered: