feat: use go:embed to embed templates (#1756)
This commit is contained in:
16
tools/goctl/rpc/generator/rpc.tpl
Normal file
16
tools/goctl/rpc/generator/rpc.tpl
Normal file
@@ -0,0 +1,16 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package {{.package}};
|
||||
option go_package="./{{.package}}";
|
||||
|
||||
message Request {
|
||||
string ping = 1;
|
||||
}
|
||||
|
||||
message Response {
|
||||
string pong = 1;
|
||||
}
|
||||
|
||||
service {{.serviceName}} {
|
||||
rpc Ping(Request) returns(Response);
|
||||
}
|
||||
Reference in New Issue
Block a user