WithTimeout clones the client with the given timeout. If a custom requester was given while initializing, it will be overridden.
(timeout time.Duration)
| 121 | // WithTimeout clones the client with the given timeout. |
| 122 | // If a custom requester was given while initializing, it will be overridden. |
| 123 | func (c *Client) WithTimeout(timeout time.Duration) *Client { |
| 124 | nc := *c |
| 125 | nc.timeout = timeout |
| 126 | nc.requester = newRequester(timeout) |
| 127 | return &nc |
| 128 | } |
| 129 | |
| 130 | // FlatFeed returns a new Flat Feed with the provided slug and userID. |
| 131 | func (c *Client) FlatFeed(slug, userID string) (*FlatFeed, error) { |
nothing calls this directly
no test coverage detected