summaryrefslogtreecommitdiff
path: root/cell.go
diff options
context:
space:
mode:
authorRi Xu <xuri.me@gmail.com>2016-09-02 11:54:52 +0800
committerRi Xu <xuri.me@gmail.com>2016-09-02 11:54:52 +0800
commit192af02a40cc745d967be1c96fcc52569ca8e8df (patch)
tree7350c2c152b6df596759c214705f7a00eb30b573 /cell.go
parent0a0a36bafd160752c2af914ab3bdb1d28665ebe3 (diff)
Format code with golint rules
Diffstat (limited to 'cell.go')
-rw-r--r--cell.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/cell.go b/cell.go
index 4ce9619..6788daf 100644
--- a/cell.go
+++ b/cell.go
@@ -6,14 +6,14 @@ import (
"strings"
)
-// Get value from cell by given sheet index and axis in XLSX file
+// GetCellValue provide function get value from cell by given sheet index and axis in XLSX file
func GetCellValue(file []FileList, sheet string, axis string) string {
axis = strings.ToUpper(axis)
var xlsx xlsxWorksheet
row := getRowIndex(axis)
xAxis := row - 1
name := `xl/worksheets/` + strings.ToLower(sheet) + `.xml`
- xml.Unmarshal([]byte(readXml(file, name)), &xlsx)
+ xml.Unmarshal([]byte(readXML(file, name)), &xlsx)
rows := len(xlsx.SheetData.Row)
if rows <= xAxis {
return ``
@@ -26,7 +26,7 @@ func GetCellValue(file []FileList, sheet string, axis string) string {
shardStrings := xlsxSST{}
xlsxSI := 0
xlsxSI, _ = strconv.Atoi(v.V)
- xml.Unmarshal([]byte(readXml(file, `xl/sharedStrings.xml`)), &shardStrings)
+ xml.Unmarshal([]byte(readXML(file, `xl/sharedStrings.xml`)), &shardStrings)
return shardStrings.SI[xlsxSI].T
case "str":
return v.V