func (p *GetResourceContentParams) Do(ctx context.Context) (content []byte, err error) {
	// execute
	var res GetResourceContentReturns
	err = cdp.Execute(ctx, CommandGetResourceContent, p, &res)
	if err != nil {
		return nil, err
	}

	// decode
	var dec []byte
	if res.Base64encoded {
		dec, err = base64.StdEncoding.DecodeString(res.Content)
		if err != nil {
			return nil, err
		}
	} else {
		dec = []byte(res.Content)
	}
	return dec, nil
}
func (p *GetResourceContentParams) Do(ctx context.Context) (content []byte, err error) {
	
	var res GetResourceContentReturns
	err = cdp.Execute(ctx, CommandGetResourceContent, p, &res)
	if err != nil {
		return nil, err
	}

	
	var dec []byte
	if res.Base64encoded {
		dec, err = base64.StdEncoding.DecodeString(res.Content)
		if err != nil {
			return nil, err
		}
	} else {
		dec = []byte(res.Content)
	}
	return dec, nil
}
func ( p * GetResourceContentParams ) Do ( ctx context . Context ) ( content [ ] byte , err error ) { // execute var res GetResourceContentReturns err = cdp . Execute ( ctx , CommandGetResourceContent , p , & res ) if err != nil { return nil , err } // decode var dec [ ] byte if res . Base64encoded { dec , err = base64 . StdEncoding . DecodeString ( res . Content ) if err != nil { return nil , err } } else { dec = [ ] byte ( res . Content ) } return dec , nil }
// Do executes Page.getResourceContent against the provided context.
//
// returns:
//   content - Resource content.
Do executes Page . getResourceContent against the provided context . returns : content - Resource content .