Skip to content
/ simple Public
forked from grpc-example/simple

is grpc simple demo。一个简单的纯grpc示例

Notifications You must be signed in to change notification settings

loonghe/simple

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

准备工作

brew install protobuf
protoc --version #最新版本
go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
export PATH=$PATH:$GOPATH/bin

下载demo

git clone https://github.com/grpc-example/simple.git
cd simple
go mod tidy

编译.proto文件命令

make api

run server

go run server.go

run client

go run client.go

About

is grpc simple demo。一个简单的纯grpc示例

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 86.0%
  • Makefile 14.0%