This is a creation in Article, where the information may have evolved or changed.
GRPC provides a good RPC remote procedure call function, encapsulating the intermediate links, so that the client server using RPC only need to focus on their own business.
The following are the steps to use GPRC in the Go language:
1. Install the Go language
The Go language installation is no longer detailed, see also: Https://golang.org/doc/install
Grpc need to work in Go language version 1.5 or above
2, Installation Grpc
Once the go language is installed, it is called as follows:
$ GoGetGoogle.Golang.org/Grpc
3, installation Protocol buffers v3
Download the corresponding platform and version (protoc-<version>-<platform>.zip) under Https://github.com/google/protobuf/releases Package or installation package, unzip it into your own directory, and also count the bin directory under the directory into the PATH environment variable
Installation Complete (detail reference: HTTP://WWW.GRPC.IO/DOCS/QUICKSTART/GO.HTML#INSTALL-PROTOCOL-BUFFERS-V3)