August 2019
Beginner to intermediate
798 pages
17h 2m
English
In this subsection, we are going to develop a gRPC client in Go, which is going to be saved in the gClient.go file, which will be presented in three parts.
The first part of gClient.go is as follows:
package main
import (
"fmt"
p "github.com/mactsouk/protobuf"
"golang.org/x/net/context"
"google.golang.org/grpc"
)
var port = ":8080"
Notice that you should not need to download the required external Go packages because you already downloaded them when you executed the following command in order to compile the interface definition language file and create the Go-related output files:
$ go get -u github.com/golang/protobuf/protoc-gen-go
Keep in mind that -u tells go get to update the named packages along with their dependencies. ...
Read now
Unlock full access