diff --git a/operations_tmpl.go b/operations_tmpl.go index 4422c26..94ab7cb 100644 --- a/operations_tmpl.go +++ b/operations_tmpl.go @@ -22,7 +22,7 @@ var opsTmpl = ` // {{range .Faults}} // - {{.Name}} {{.Doc}}{{end}}{{end}} {{if ne .Doc ""}}/* {{.Doc}} */{{end}} - {{makePublic .Name | replaceReservedWords}} ({{if ne $requestType ""}}request *{{$requestType}}{{end}}) (*{{$responseType}}, error) + {{makePublic .Name | replaceReservedWords}} (ctx context.Context, {{if ne $requestType ""}}request *{{$requestType}}{{end}}) (*{{$responseType}}, error) {{/*end*/}} {{end}} }