Skip to content
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
@yiminc-zz

Description

@yiminc-zz

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions