Make package naming meet Go requirements and

This commit is contained in:
MYLS
2018-09-26 13:20:22 +08:00
parent 3c7ebec0dd
commit d6d61cf4d1
5 changed files with 19 additions and 7 deletions

14
gen.bat
View File

@@ -1,4 +1,10 @@
mkdir gen\go
protoc -I . --go_out=plugins=grpc:gen/go bdchain/api/common.proto
protoc -I . --go_out=plugins=grpc:gen/go bdchain/api/tx_ledger.proto
protoc -I . --go_out=plugins=grpc:gen/go bdchain/api/ac_chain.proto
@echo off
set dir=.\gen\go
if not exist %dir% mkdir %dir%
protoc -I . --go_out=plugins=grpc:%dir% bdchain/api/common.proto
protoc -I . --go_out=plugins=grpc:%dir% bdchain/api/tx_ledger.proto
protoc -I . --go_out=plugins=grpc:%dir% bdchain/api/ac_chain.proto
echo All Done!
pause.