window go protobuf

用来编译编译:proto

http://www.cppblog.com/sunicdavy/archive/2014/01/21/205517.html

http://studygolang.com/articles/8804

 protoc --go_out=. protocol.proto

E:TESTTESTGRPCsrcgoogle.golang.orggrpcexampleshelloworldhelloworld>proto
c.exe --plugin=protoc-gen-go=%GOPATH%inprotoc-gen-go.exe --go_out=./ ./hellow
orld.proto

E:TESTTESTGRPCsrcgoogle.golang.orggrpcexampleshelloworldhelloworld>protoc.exe --plugin=protoc-gen-go=%GOPATH%inprotoc-gen-go.exe --go_out=plugins=grpc:. ./wg.proto

E:PokerServersrccommon pc_world>protoc.exe --plugin=protoc-gen-go=c:Goinprotoc-gen-go.exe --go_out=plugins=grpc:. ./wg.proto

protoc.exe --proto_path=E:PokerServersrccommonprotocolproto  --proto_path=./ --plugin=protoc-gen-go=c:Goinprotoc-gen-go.exe --go_out=plugins=grpc:. ./ds.proto

//protoc.exe --plugin=protoc-gen-go=c:goinprotoc-gen-go.exe --go_out=plugins=grpc:. ./wg.proto(有时会出问题)

protoc.exe --plugin=protoc-gen-go=C:Goinprotoc-gen-go.exe --go_out=./ ./*.proto

protoc.exe --plugin=protoc-gen-go=C:Goinprotoc-gen-go.exe --go_out=plugins=grpc:. ./deal.proto

原文地址:https://www.cnblogs.com/chunyou128/p/6054589.html