From 3c4ad28db75108dfd974b994df26ec7f33a69be7 Mon Sep 17 00:00:00 2001 From: Ri Xu Date: Tue, 30 Aug 2016 21:54:28 +0800 Subject: - Get cell value support - Optimisation code use fmt package - Update README - Remove useless function --- excelize.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'excelize.go') diff --git a/excelize.go b/excelize.go index 3838231..9ee5e7c 100644 --- a/excelize.go +++ b/excelize.go @@ -34,7 +34,7 @@ func SetCellInt(file []FileList, sheet string, axis string, value int) []FileLis xAxis := row - 1 yAxis := titleToNumber(col) - name := fmt.Sprintf("xl/worksheets/%s.xml", strings.ToLower(sheet)) + name := `xl/worksheets/` + strings.ToLower(sheet) + `.xml` xml.Unmarshal([]byte(readXml(file, name)), &xlsx) rows := xAxis + 1 @@ -65,7 +65,7 @@ func SetCellStr(file []FileList, sheet string, axis string, value string) []File xAxis := row - 1 yAxis := titleToNumber(col) - name := fmt.Sprintf("xl/worksheets/%s.xml", strings.ToLower(sheet)) + name := `xl/worksheets/` + strings.ToLower(sheet) + `.xml` xml.Unmarshal([]byte(readXml(file, name)), &xlsx) rows := xAxis + 1 -- cgit v1.2.1