genql: bits of whitespace
This commit is contained in:
@@ -11,9 +11,9 @@ type {{.ResponseName}} = {{.ResponseType}}
|
||||
|
||||
// {{.Doc}}
|
||||
func {{.Name}}(ctx context.Context, client *graphql.Client{{range .Args}}, {{.GoName}} {{.GoType}}{{end}}) (*{{.ResponseName}}, error) {
|
||||
{{if .Args}}
|
||||
{{- if .Args -}}
|
||||
variables := map[string]interface{}{
|
||||
{{range .Args}}
|
||||
{{range .Args -}}
|
||||
"{{.GraphQLName}}": {{.GoName}},
|
||||
{{end}}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user