mirror of
https://github.com/cubixle/ebay.git
synced 2026-04-24 21:24:47 +01:00
Test contextual location and add first integration test
This commit is contained in:
2
ebay.go
2
ebay.go
@@ -90,7 +90,7 @@ func (c *Client) NewRequest(method, url string, opts ...Opt) (*http.Request, err
|
||||
return req, nil
|
||||
}
|
||||
|
||||
// Do sends an API reauest and stores the JSON decoded value into v.
|
||||
// Do sends an API request and stores the JSON decoded value into v.
|
||||
func (c *Client) Do(ctx context.Context, req *http.Request, v interface{}) error {
|
||||
resp, err := c.client.Do(req.WithContext(ctx))
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user