Generate RPC

Time:2022-1-5

command

[email protected] transform % goctl rpc template -o transform.proto
[email protected] transform % pwd
/Users/myself/Golang/common_project/src/shorturl/rpc/transform
[email protected] transform % 

The generated template is as follows

syntax = "proto3";

package transform;

message Request {
  string ping = 1;
}

message Response {
  string pong = 1;
}

service Transform {
  rpc Ping(Request) returns(Response);
}

This work adoptsCC agreement, reprint must indicate the author and the link to this article