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
protoc --gogo_out=. greet
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.
PLease help me
It seems you did not install
protoc-gen-gogo
on your system. Install it usinggo get github.com/gogo/protobuf/protoc-gen-gogo
and try again. For more help refer to this - https://github.com/gogo/protobuf