diff options
author | Ri Xu <xuri.me@gmail.com> | 2017-01-18 14:47:23 +0800 |
---|---|---|
committer | Ri Xu <xuri.me@gmail.com> | 2017-01-18 14:47:23 +0800 |
commit | f05df2a0182ee5761f5fbe7e56020313a0ab0b61 (patch) | |
tree | 7aaf5365c9082931f9d4cdd080ff2932918164fb /excelize.go | |
parent | a99f0227b085d8f417f77864941650ef0e6273e4 (diff) |
- New function `SetSheetName` and `SetColWidth` added, support rename sheet and set column width;
- Add escape characters of sheet name;
- Update go test and fix typo
Diffstat (limited to 'excelize.go')
-rw-r--r-- | excelize.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/excelize.go b/excelize.go index d7e08d5..f22af37 100644 --- a/excelize.go +++ b/excelize.go @@ -56,7 +56,7 @@ func (f *File) SetCellValue(sheet string, axis string, value interface{}) { case []byte: f.SetCellStr(sheet, axis, string(t)) default: - f.SetCellStr(sheet, axis, ``) + f.SetCellStr(sheet, axis, "") } } @@ -296,7 +296,7 @@ func (f *File) UpdateLinkedValue() { xml.Unmarshal([]byte(f.readXML(name)), &xlsx) for indexR, row := range xlsx.SheetData.Row { for indexC, col := range row.C { - if col.F != nil && col.V != `` { + if col.F != nil && col.V != "" { xlsx.SheetData.Row[indexR].C[indexC].V = "" xlsx.SheetData.Row[indexR].C[indexC].T = "" } |