默认,protobuf,编译期间,不编译服务。 要想使之编译。 需要使用 gRPC。
需要在文件头部改指定包名:
option go_package = "./";
命令:protoc --go-grpc_out=./ *.proto