add a simple Go version readme.md

This commit is contained in:
MYLS
2018-10-09 11:52:51 +08:00
parent dd26770c1c
commit 74246d98f4
2 changed files with 35 additions and 4 deletions

15
gen.bat
View File

@@ -1,9 +1,16 @@
@echo off
set dir=.\gen\go
set exe=protoc
set gen=protoc-gen-go
if defined GOPATH set PATH=%PATH%;%GOPATH%\bin
where /q %exe% || echo missing %exe% && exit /B
where /q %gen% || echo missing %gen% && exit /B
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
%exe% -I . --go_out=plugins=grpc:%dir% bdchain/api/common.proto
%exe% -I . --go_out=plugins=grpc:%dir% bdchain/api/tx_ledger.proto
%exe% -I . --go_out=plugins=grpc:%dir% bdchain/api/ac_chain.proto
echo All Done!
echo all done