diff options
author | xuri <xuri.me@gmail.com> | 2021-01-08 23:57:13 +0800 |
---|---|---|
committer | xuri <xuri.me@gmail.com> | 2021-01-08 23:57:13 +0800 |
commit | a26675517e6326a7e3d3391f9de79d5efeb8bb90 (patch) | |
tree | 8c0dbf440227b52ab9334fb32f709e233b9ff2bc /cell.go | |
parent | 22dc6ff33c24e25c0281401272c852f81c10a9f1 (diff) |
This closes #756, not set the empty string for the cell when SetCellValue with nil
Diffstat (limited to 'cell.go')
-rw-r--r-- | cell.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -93,7 +93,7 @@ func (f *File) SetCellValue(sheet, axis string, value interface{}) error { case bool: err = f.SetCellBool(sheet, axis, v) case nil: - err = f.SetCellStr(sheet, axis, "") + break default: err = f.SetCellStr(sheet, axis, fmt.Sprint(value)) } |