From f05df2a0182ee5761f5fbe7e56020313a0ab0b61 Mon Sep 17 00:00:00 2001 From: Ri Xu Date: Wed, 18 Jan 2017 14:47:23 +0800 Subject: - 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 --- excelize.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'excelize.go') 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 = "" } -- cgit v1.2.1