6 lines
300 B
Bash
Executable File
6 lines
300 B
Bash
Executable File
#! /bin/bash
|
|
|
|
NAME=auth
|
|
GO_PB_PATH=./gen/go/service/$NAME
|
|
mkdir $GO_PB_PATH -p
|
|
protoc -I ./proto --go_out $GO_PB_PATH --go_opt paths=source_relative --go-grpc_out $GO_PB_PATH --go-grpc_opt paths=source_relative --grpc-gateway_out $GO_PB_PATH --grpc-gateway_opt paths=source_relative $NAME.proto |