// NewClient creates an *http.Client for use in updating.
NewClient creates an *http.Client for use in updating.
// NewClient creates an * http . Client for use in updating .
func NewClient(
	config *Config,
) *http.Client {
	transport := http.DefaultTransport
	if config.Proxy != nil {
		proxy := http.ProxyURL(config.Proxy)
		transport.(*http.Transport).Proxy = proxy
	}
	return &http.Client{Transport: transport}
}
func NewClient ( config * Config , ) * http . Client { transport := http . DefaultTransport if config . Proxy != nil { proxy := http . ProxyURL ( config . Proxy ) transport . ( * http . Transport ) . Proxy = proxy } return & http . Client { Transport : transport } }
NewClient creates an *http.Client for use in updating.
NewClient creates an * http . Client for use in updating .