This repository was archived by the owner on Jun 27, 2023. It is now read-only.
This repository was archived by the owner on Jun 27, 2023. It is now read-only.
mockgen does not work with type alias #144
Closed
Description
golang 1.9 introduce this type alias feature where you can define type as alias of another type.
There are many different legit use case of that type alias.
The mockgen does not seem to be able to generate mocks for type alias.
For example, If i define Foo as interface, then define Bar as alias of Foo, and I want to generate mock for Bar, it won't work.