golang / mock

GoMock is a mocking framework for the Go programming language.
Apache License 2.0
9.29k stars 610 forks source link

mockgen parameter to generate only exported interface #271

Closed adzimzf closed 5 years ago

adzimzf commented 5 years ago

is there any way to generate mock only for exported interface?

poy commented 5 years ago

I think you are looking for "reflect mode". You can find more information about it in the README.

poy commented 5 years ago

I'm going to close this as its becoming stale. Feel free to reach back out.