func (c *Client) Open(r *protocol.OpenRequest) (*protocol.OpenResponse, error) {
	resp, err := c.send(r)
	if err != nil {
		return nil, err
	}

	if resp, ok := resp.(*protocol.OpenResponse); ok {
		return resp, nil
	}
	return nil, ErrInvalidResponse
}
// Open opens the current file according to provided parameters.
Open opens the current file according to provided parameters.
// Open opens the current file according to provided parameters .
func (c *Client) Open(r *protocol.OpenRequest) (*protocol.OpenResponse, error) {
	resp, err := c.send(r)
	if err != nil {
		return nil, err
	}
	if resp, ok := resp.(*protocol.OpenResponse); ok {
		return resp, nil
	}
	return nil, ErrInvalidResponse
}
func ( c * Client ) Open ( r * protocol . OpenRequest ) ( * protocol . OpenResponse , error ) { resp , err := c . send ( r ) if err != nil { return nil , err } if resp , ok := resp . ( * protocol . OpenResponse ) ; ok { return resp , nil } return nil , ErrInvalidResponse }
Open opens the current file according to provided parameters.
Open opens the current file according to provided parameters .