carvalhorr / protoc-gen-mock

47 stars 11 forks source link

forget to import "fmt" #23

Closed vitaneyeyu closed 4 years ago

vitaneyeyu commented 4 years ago

eg: func _MemberDataAPI_MultiUserNumbersByMobiles_MockHandler(srv interface{}, stream grpc.ServerStream) error { // Mock not implemented for streaming return fmt.Errorf("mock not implemented for streaming") } the generated mock.pb.go forget to import "fmt"

carvalhorr commented 4 years ago

Added missing import to the generated code. See https://github.com/carvalhorr/protoc-gen-mock/pull/25