diff --git a/mockgen/model/model.go b/mockgen/model/model.go index 55324f9..e2dde53 100644 --- a/mockgen/model/model.go +++ b/mockgen/model/model.go @@ -147,6 +147,8 @@ type Type interface { } func init() { + // Call gob.RegisterName with pkgPath as prefix to avoid conflicting with + // github.com/golang/mock/mockgen/model 's registration. gob.RegisterName(pkgPath+".ArrayType", &ArrayType{}) gob.RegisterName(pkgPath+".ChanType", &ChanType{}) gob.RegisterName(pkgPath+".FuncType", &FuncType{})