excelize icon indicating copy to clipboard operation
excelize copied to clipboard

passing excelize.File by value

Open source-transformer opened this issue 4 years ago • 1 comments

PR Details

Description

passing excelize.File by value will result in the caller getting shared-string-table index returned from the cell being queried (when setting strings in cells). Effectively a new instance of the shared strings table will be created.

Related Issue

Motivation and Context

You can't pass excelize.File by value and update cells containing strings

How Has This Been Tested

Added unit test to show how the behavior is now correct

Types of changes

  • [ ] Docs change / refactoring / dependency upgrade
  • [x ] Bug fix (non-breaking change which fixes an issue)
  • [ ] New feature (non-breaking change which adds functionality)
  • [ ] Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • [x ] My code follows the code style of this project.
  • [ ] My change requires a change to the documentation.
  • [ ] I have updated the documentation accordingly.
  • [ x] I have read the CONTRIBUTING document.
  • [ x] I have added tests to cover my changes.
  • [ x] All new and existing tests passed.

source-transformer avatar Sep 22 '21 16:09 source-transformer

Thanks for your PR, why you need to passing excelize.File by value and the unit test is failed. I think this change is not required.

xuri avatar Sep 26 '21 02:09 xuri

We still don't have enough info on the code and response to this pull request, so I'll close this, if you have any questions, please let me know to reopen this anytime.

xuri avatar Oct 09 '22 08:10 xuri