1 package imp1 2 3 import "bufio" 4 5 type Imp1 struct{} 6 7 type ImpT int 8 9 type ForeignEmbedded interface { 10 // The return value here also makes sure that 11 // the generated mock picks up the "bufio" import. 12 ForeignEmbeddedMethod() *bufio.Reader 13 14 // This method uses a type in this package, 15 // which should be qualified when this interface is embedded. 16 ImplicitPackage(s string, t ImpT, st []ImpT, pt *ImpT, ct chan ImpT) 17 } 18