excelize
excelize copied to clipboard
passing excelize.File by value
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.
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.
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.