August 2019
Beginner to intermediate
798 pages
17h 2m
English
In this subsection, you will learn how to develop a gRPC server in Go. The name of the program will be gServer.go and it is going to be presented in four parts.
The first part of gServer.go is as follows:
package main
import (
"fmt"
p "github.com/mactsouk/protobuf"
"golang.org/x/net/context"
"google.golang.org/grpc"
"net"
)
As the name of the Go package with the interface definition language is message_service, which is pretty long, I've introduced an alias for it here, which is pretty short and convenient (p).
The golang.org/x/net/context and google.golang.org/grpc packages were downloaded earlier along with the other dependencies of the github.com/golang/protobuf/protoc-gen-go package, which means that you will not need ...
Read now
Unlock full access