summaryrefslogtreecommitdiff
path: root/excelize.go
diff options
context:
space:
mode:
authorRi Xu <xuri.me@gmail.com>2016-08-30 21:54:28 +0800
committerRi Xu <xuri.me@gmail.com>2016-08-30 21:54:28 +0800
commit3c4ad28db75108dfd974b994df26ec7f33a69be7 (patch)
tree9f3f03683574b4e756b8467556ab2004f266b159 /excelize.go
parent0d60020f9678c80df75d180cc874a24d80b1db08 (diff)
- Get cell value support
- Optimisation code use fmt package - Update README - Remove useless function
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