From 7c809e91b0f310a927ae56a2d9926c0cdb80c86c Mon Sep 17 00:00:00 2001 From: Grant Gongaware Date: Fri, 1 Feb 2019 11:34:53 -0800 Subject: [PATCH] include context in interface --- operations_tmpl.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}} }