()
| 58 | } |
| 59 | |
| 60 | func (cfg *Config) client() http.Client { |
| 61 | if cfg.Client == nil { |
| 62 | return http.Client{ |
| 63 | Transport: cfg.roundTripper(), |
| 64 | } |
| 65 | } |
| 66 | return *cfg.Client |
| 67 | } |
| 68 | |
| 69 | func (cfg *Config) validate() error { |
| 70 | if cfg.Client != nil && cfg.RoundTripper != nil { |
no test coverage detected