You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
go-grpc_basic/proto/compile-proto.sh

12 lines
331 B
Bash

#!/bin/bash
WORKDIR=github.com/ajikamaludin/go-grpc_basic
protoc \
-I. \
-I/usr/local/include \
-I${GOPATH}/src \
-I${GOPATH}/src/$WORKDIR/proto \
-I${GOPATH}/src/$WORKDIR/proto/lib \
--go_out=plugins=grpc:$GOPATH/src \
--grpc-gateway_out=logtostderr=true:$GOPATH/src \
v1/*/*.proto