Closed dennypenta closed 4 years ago
I think the issue you are having here is providing a directory for mockgen instead of a file. Also, when using the source option you should not need to list the interface at the end.
Can you please try a command that looks something like this and let me know if that helped:
mockgen -source=service.go -destination=service_mocks.go -package=service_test
Closing due to lack of a response. Please feel free to reopen something if you are still having trouble.
With GO111MODULE=on running the following command:
And getting an error:
Loading input failed: loading package failed
I found the solution as running this one:
But I can't pass destination, package name and other options, when I'm passing it, I will give result as I executed
mockgen
without any parameters.