This is an basic example of GRPC.
To install your dependencies you need to type the following command:
go mod download
go version go1.15.2 windows/amd64
To run the GRPC Server just type in the following command:
go run server.go
For the client you need to type in this command:
go run client.go
to translate the .proto
file into go code you first need to install the binary on your local machine.
the current releases can be found at ProtocolBuffers Releases.
The following command shows you how to translate the .proto
file into golang code.
make you sure you have created the folder where you want to but in your go code
/path/to/binary/protoc.exe --go_out=plugins=grpc:chat .\chat.proto