(httpClient *http.Client)
| 29 | var linkRE = regexp.MustCompile(`<([^>]+)>;\s*rel="([^"]+)"`) |
| 30 | |
| 31 | func NewClientFromHTTP(httpClient *http.Client) *Client { |
| 32 | client := &Client{http: httpClient} |
| 33 | return client |
| 34 | } |
| 35 | |
| 36 | type Client struct { |
| 37 | http *http.Client |
no outgoing calls