Generate RPC



[email protected] transform % goctl rpc template -o transform.proto
[email protected] transform % pwd
[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