0
Step 1:- add following dependencies 
           

github.com/gogo/protobuf/proto [ok] github.com/gogo/protobuf/protoc-gen-gogo[ok] github.com/gogo/protobuf/gogoproto[ok] google.golang.org/grpc[ok]

Step 2:- 
  create proto file in a project 
Step 3:-
  change directory and type this command 

协议 --gogo_out=。迎接

error:=
protoc-gen-gogo: program not found or is not executable
Please specify a program using the absolute path or make sure the program is available in your PATH system variable.
--gogo_out: protoc-gen-gogo: Plugin failed with status code 1.

请帮我

4

1 回答 1

1

您的系统上似乎没有安装protoc-gen-gogo。使用安装它,go get github.com/gogo/protobuf/protoc-gen-gogo然后重试。如需更多帮助,请参阅 - https://github.com/gogo/protobuf

于 2021-06-06T11:10:38.773 回答