If you want to compile *.proto, you need to download it first.
Set the proto binary to your path, example: export PATH=/doc/proto/bin:$PATH
in your .bash_profile or .bashrc or .zshrc
While you see the compile.sh
file, you will realize that there is $PROTOPATH variable, here is the solution: add export PROTOPATH=/doc/proto/include:$PATH
to your environment variable.
`go run server/main.go`
`go run client/main.go`
`http://localhost:18080/add/10/10`
You will see the result as: client result for add 20