package
0.0.0-20221003175646-f21b37fa8a7a
Repository: https://github.com/vladiant/golangsamples.git
Documentation: pkg.go.dev

# README

Beginners Guide to gRPC in Go

Based on Beginners Guide to gRPC in Go! from TutorialEdge YouTube channel.

Environment

  • Ubuntu 20
  • Visual Studio Code + Go plugin
  • Go version 1.13.8

Steps to create

  1. Read to follow: gRPC Quick start
  2. Install protocol compiler: sudo apt install protobuf-compiler
  3. export PATH="$PATH:$(go env GOPATH)/bin"
  4. export GO111MODULE=on
  5. go get google.golang.org/protobuf/cmd/protoc-gen-go google.golang.org/grpc/cmd/protoc-gen-go-grpc
  6. go install google.golang.org/grpc/cmd/protoc-gen-go-grpc
  7. Prepare files server.go , chat.proto and chat folder.
  8. go get -u github.com/golang/protobuf/protoc-gen-go
  9. protoc --go_out=./chat --go_opt=paths=source_relative --go-grpc_out=./chat --go-grpc_opt=paths=source_relative chat.proto
  10. Prepare chat.go
  11. go mod init chat to create local module. Replaced go mod init github.com/tutorialedge/go-grpc-tutorial/chat from tutorial.
  12. Prepare client.go

# Packages

No description provided by the author