(req *http.Request, v interface{})
| 125 | } |
| 126 | |
| 127 | func (c *Client) DoRequest(req *http.Request, v interface{}) error { |
| 128 | if err := c.do(req, &v); err != nil { |
| 129 | return err |
| 130 | } |
| 131 | |
| 132 | return nil |
| 133 | } |
| 134 | |
| 135 | func (c *Client) userAgent() string { |
| 136 | if c.UserAgent == "" { |
no test coverage detected