Example code on how to mock gRPC services

This commit is contained in:
Mahak Mukhi
2016-12-13 13:06:25 -08:00
parent 8712952b7d
commit 9cc4fd4cca
3 changed files with 99 additions and 0 deletions

View File

@ -0,0 +1,2 @@
mockgen google.golang.org/grpc/examples/helloworld/helloworld GreeterClient > mock_helloworld/hw_mock.go
gofmt -w mock_helloworld/hw_mock.go