func (d *Couch) NewClient(ctx context.Context, dsn string) (driver.Client, error) {
	chttpClient, err := chttp.New(ctx, dsn)
	if err != nil {
		return nil, err
	}
	c := &client{
		Client: chttpClient,
	}
	c.setCompatMode(ctx)
	return c, nil
}
// NewClient establishes a new connection to a CouchDB server instance. If
// auth credentials are included in the URL, they are used to authenticate using
// CookieAuth (or BasicAuth if compiled with GopherJS). If you wish to use a
// different auth mechanism, do not specify credentials here, and instead call
// Authenticate() later.
NewClient establishes a new connection to a CouchDB server instance. If
auth credentials are included in the URL, they are used to authenticate using
CookieAuth (or BasicAuth if compiled with GopherJS). If you wish to use a
different auth mechanism, do not specify credentials here, and instead call
Authenticate() later.
// NewClient establishes a new connection to a CouchDB server instance . If // auth credentials are included in the URL they are used to authenticate using // CookieAuth ( or BasicAuth if compiled with GopherJS ) . If you wish to use a // different auth mechanism do not specify credentials here and instead call // Authenticate () later .
func (d *Couch) NewClient(ctx context.Context, dsn string) (driver.Client, error) {
	chttpClient, err := chttp.New(ctx, dsn)
	if err != nil {
		return nil, err
	}
	c := &client{
		Client: chttpClient,
	}
	c.setCompatMode(ctx)
	return c, nil
}
func ( d * Couch ) NewClient ( ctx context . Context , dsn string ) ( driver . Client , error ) { chttpClient , err := chttp . New ( ctx , dsn ) if err != nil { return nil , err } c := & client { Client : chttpClient , } c . setCompatMode ( ctx ) return c , nil }
NewClient establishes a new connection to a CouchDB server instance.
NewClient establishes a new connection to a CouchDB server instance .