protobufs/scripts/go-gen.sh

8 lines
262 B
Bash
Raw Permalink Normal View History

2022-07-17 03:10:59 +00:00
#!/bin/bash
for f in *.proto
do
name=$(basename $f .proto)
mkdir -p ./go-grpc/$name
protoc --experimental_allow_proto3_optional --go_out=./go-grpc/$name --go_opt=paths=source_relative --go-grpc_out=./go-grpc/$name --go-grpc_opt=paths=source_relative $f
done