func New(p Params) *Client {
	if p.URL == "" {
		p.URL = ServerURL
	}
	bclient := p.BakeryClient
	if bclient == nil {
		bclient = httpbakery.NewClient()
		bclient.AddInteractor(httpbakery.WebBrowserInteractor{})
	}
	uav := p.UserAgentValue
	if uav == "" {
		uav = userAgentValue
	}
	return &Client{
		bclient:                bclient,
		params:                 p,
		minMultipartUploadSize: defaultMinMultipartUploadSize,
		userAgentValue:         uav,
	}
}
// New returns a new charm store client.
New returns a new charm store client.
// New returns a new charm store client .
func New(p Params) *Client {
	if p.URL == "" {
		p.URL = ServerURL
	}
	bclient := p.BakeryClient
	if bclient == nil {
		bclient = httpbakery.NewClient()
		bclient.AddInteractor(httpbakery.WebBrowserInteractor{})
	}
	uav := p.UserAgentValue
	if uav == "" {
		uav = userAgentValue
	}
	return &Client{
		bclient:                bclient,
		params:                 p,
		minMultipartUploadSize: defaultMinMultipartUploadSize,
		userAgentValue:         uav,
	}
}
func New ( p Params ) * Client { if p . URL == " " { p . URL = ServerURL } bclient := p . BakeryClient if bclient == nil { bclient = httpbakery . NewClient ( ) bclient . AddInteractor ( httpbakery . WebBrowserInteractor { } ) } uav := p . UserAgentValue if uav == " " { uav = userAgentValue } return & Client { bclient : bclient , params : p , minMultipartUploadSize : defaultMinMultipartUploadSize , userAgentValue : uav , } }
New returns a new charm store client.
New returns a new charm store client .