命令

(base) ➜  pb protoc --go_out=. helloworld.proto                     

报错信息

MAC m1 环境下

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

解决方案

方案1

亲测

brew install protoc-gen-go
brew install protoc-gen-go-grpc

安装成功

protoc-gen-go --version