Exercise 4: Working with gRPC
Let’s test our understanding by attempting this challenge.
We'll cover the following
Let’s practice what we’ve learned so far. The solution to this exercise will be provided in the next lesson.
Problem
Create your own gRPC service that implements integer addition and subtraction.
In the
gServer.go
code, incorporate theAdd
andSubtract
functions; the remaining code has been provided for your convenience.In the
gClient.go
code, incorporate theAddNumbers
andSubtractNumbers
functions; the remaining code has been provided for your convenience.
To execute the client side, open a new terminal window and run the following commands:
Get hands-on with 1400+ tech skills courses.