-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
client: added parentRequestOptions #28
Conversation
client.go
Outdated
@@ -141,6 +144,13 @@ func (cl *Client) Do(c context.Context, req *Request) (*Response, error) { | |||
return resp, nil | |||
} | |||
|
|||
func WithParentRequestOptions(opts []RequestOption) ClientOption { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[golint] reported by reviewdog 🐶
exported function WithParentRequestOptions should have comment or be unexported
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd probably call the public function WithRequestOptions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good point. I'll change that.
Thanks reviewdog! |
for RequestOption inheritance with NewRequest
cccaf7d
to
915d2d0
Compare
Codecov Report
@@ Coverage Diff @@
## master #28 +/- ##
==========================================
- Coverage 38.61% 38.41% -0.21%
==========================================
Files 7 7
Lines 448 453 +5
==========================================
+ Hits 173 174 +1
- Misses 247 251 +4
Partials 28 28
Continue to review full report at Codecov.
|
closes issue #25 |
allowing RequestOption inheritance with NewRequest