Skip to content

Commit

Permalink
fix: multiple services not supported due to go fmt error (#62)
Browse files Browse the repository at this point in the history
  • Loading branch information
Xytrical committed Apr 5, 2024
1 parent 812ff41 commit cc3ef54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions types.go.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ type {{$service.Name}} interface {
}
{{- end }}

{{- range $_, $method := $service.Methods -}}
{{ if eq $method.StreamOutput true }}
{{- range $_, $method := $service.Methods }}
{{ if eq $method.StreamOutput true -}}
type {{$method.Name}}StreamWriter interface {
Write({{range $i, $output := $method.Outputs}}{{if gt $i 0}}, {{end}}{{$output.Name}} {{template "field" dict "Name" $output.Name "Type" $output.Type "Optional" $output.Optional "TypeMap" $typeMap "TypePrefix" $typePrefix "TypeMeta" $output.Meta}}{{end}}) error
}
Expand Down

0 comments on commit cc3ef54

Please sign in to comment.