data_workshop/generate.sh

12 lines
401 B
Bash
Raw Permalink Normal View History

2020-05-13 06:57:57 +00:00
cd proto
protoc -I. -I/usr/include -I$GOPATH/src/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis \
--go_out=plugins=grpc:.. \
*.proto
protoc -I/usr/include -I. \
-I$GOPATH/src -I$GOPATH/src/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis \
--grpc-gateway_out=logtostderr=true:.. \
*.proto
# protoc --go_out=plugins=grpc:.. *.proto
cd ..