From cc3ef54b2ce0d34e26c7e9bc5820c31366cd8ad4 Mon Sep 17 00:00:00 2001 From: Xytrical <89838607+Xytrical@users.noreply.github.com> Date: Fri, 5 Apr 2024 20:13:45 +0200 Subject: [PATCH] fix: multiple services not supported due to go fmt error (#62) --- types.go.tmpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types.go.tmpl b/types.go.tmpl index e269108..9ba6b0a 100644 --- a/types.go.tmpl +++ b/types.go.tmpl @@ -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 }