-
-
Notifications
You must be signed in to change notification settings - Fork 126
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
Error if field type and method have the same name #170
Comments
Moq creates |
I want to moq the pgx.Pool, I cannot name the field differently, except to make my own wrapper. Can we add some checks when generating the code? |
I think @aleksvdim has a valid point here. I see to following options to resolve this:
|
Hey!
When I do
go generate ./...
I get an error.Error:
Type '*SomeIfaceMock' has both field and method named 'BeginFunc'
The text was updated successfully, but these errors were encountered: