logic-func.tpl 348 B

123456
  1. {{if .hasComment}}{{.comment}}{{end}}
  2. func (l *{{.logicName}}) {{.method}} ({{if .hasReq}}in {{.request}}{{if .stream}},stream {{.streamBody}}{{end}}{{else}}stream {{.streamBody}}{{end}}) ({{if .hasReply}}{{.response}},{{end}} error) {
  3. // todo: add your logic here and delete this line
  4. return {{if .hasReply}}&{{.responseType}}{},{{end}} nil
  5. }