code: func (tx *Transaction) EndTransaction() error {
  	err := tx.err
  	tx.err = nil
  	return err
  }
docs: // EndTransaction ends a transaction and returns any error that occurred during
  // the transaction. You should not use the transaction again after calling this
  // function.