build_and_run.sh 320 B

1234567891011121314
  1. export PATH=$PATH:$PWD/bin
  2. export GOBIN=$PWD/bin
  3. export RPC_PATH=$PWD/../
  4. export GO111MODULE=on
  5. go get -u github.com/golang/protobuf/protoc-gen-go@v1.3.3
  6. mkdir -p qtprotobuf_tutorial
  7. rm -f qtprotobuf_tutorial/*.pb.go
  8. protoc -I../ --go_out=plugins=grpc:qtprotobuf_tutorial ../tutorial.proto
  9. go build
  10. ./tutorialserver