Unexported mock types
Author: affanshahidCreated Jan 19, 2022Updated Jun 7, 2023
Labelstype: feature request
Is it possible to generate unexported mock types? i.e input:
package user
type userRepo interface {}output:
package user
type mockUserRepo struct {}This way mocks are not exported by the package especially useful when mocking unexported interfaces
Source: golang/mock