grpcの学習用
go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.28
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.2
brew install grpcurl
cd api
protoc --go_out=../pkg/grpc --go_opt=paths=source_relative \
--go-grpc_out=../pkg/grpc --go-grpc_opt=paths=source_relative \
sample.proto
go run cmd/server/main.go
grpcurl -plaintext localhost:8080 list
grpcurl -plaintext localhost:8080 list myapp.GreetingService
grpcurl -plaintext -d '{"name": "hsaki"}' localhost:8080 myapp.GreetingService.Hello
go run cmd/client/main.go