package mock import ( "context" proto "github.com/asim/go-micro/examples/v3/helloworld/proto" "github.com/asim/go-micro/v3/client" ) type mockGreeterService struct { } func (m *mockGreeterService) Hello(ctx context.Context, req *proto.Request, opts ...client.CallOption) (*proto.Response, error) { return &proto.Response{ Greeting: "Hello " + req.Name, }, nil } func NewGreeterService() proto.GreeterService { return new(mockGreeterService) }