Skip to content

Commit

Permalink
Merge pull request #13 from Stratoscale/shimshon/httpclient
Browse files Browse the repository at this point in the history
 Adding missing HTTPClient parameter
  • Loading branch information
shimzim committed Jun 11, 2018
2 parents 6564af7 + 98226c8 commit e209fdb
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
main
.idea/
5 changes: 5 additions & 0 deletions example/client/pet/pet_client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions example/client/store/store_client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions templates/client/client.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ func (a *Client) {{ pascalize .Name }}(ctx context.Context, params *{{ pascalize
AuthInfo: a.authInfo,
{{ end -}}
Context: ctx,
Client: params.HTTPClient,
})
if err != nil {
return {{ if .SuccessResponse }}{{ padSurround "nil" "nil" 0 $length }}, {{ end }}err
Expand Down

0 comments on commit e209fdb

Please sign in to comment.