Skip to content

Commit dab2d81

Browse files
committed
Add comment to the generated interface indicating how to utilize WriterTo.
1 parent 6a73729 commit dab2d81

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

codegen/service/templates/service.go.tpl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
type Service interface {
44
{{- range .Methods }}
55
{{ comment .Description }}
6+
{{- if .SkipResponseBodyEncodeDecode }}
7+
{{ comment "\nIf body implements [io.WriterTo], that implementation will be used instead. Consider [goa.design/goa/v3/pkg.SkipResponseWriter] to adapt existing implementations." }}
8+
{{- end }}
69
{{- if .ViewedResult }}
710
{{- if not .ViewedResult.ViewName }}
811
{{ comment "The \"view\" return value must have one of the following views" }}

0 commit comments

Comments
 (0)