gogrpcdemo

module
v0.0.0-...-036fb5a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 10, 2021 License: MIT

README

Golang gRPC demo

Follows tutorial from https://grpc.io/docs/languages/go/basics/

Steps performed

go mod init github.com/coseguera/gogrpcdemo
mkdir routeguide
go get google.golang.org/grpc
go get google.golang.org/protobuf/reflect/protoreflect@v1.25.0

To generate the protobuf

protoc --go_out=. --go_opt=paths=source_relative --go-grpc_out=. --go-grpc_opt=paths=source_relative routeguide/route_guide.proto 

To run

go run server/server.go 
go run client/main.go 

Directories

Path Synopsis
Package data provides convenience routines to access files in the data directory.
Package data provides convenience routines to access files in the data directory.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL