summaryrefslogtreecommitdiff
path: root/excelize.go
diff options
context:
space:
mode:
Diffstat (limited to 'excelize.go')
-rw-r--r--excelize.go4
1 files changed, 2 insertions, 2 deletions
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