summaryrefslogtreecommitdiff
path: root/cell.go
diff options
context:
space:
mode:
authorRi Xu <xuri.me@gmail.com>2016-09-12 17:37:06 +0800
committerRi Xu <xuri.me@gmail.com>2016-09-12 17:37:06 +0800
commit2e8fa2d39c8771c6f79c59e708f2b443302ade7f (patch)
tree7042d2231488b28c4b92468bcef795e89d6d5cf3 /cell.go
parentcbfd6577536304f9b0b93edb7748475d8266fe19 (diff)
Use conjunction with strings.Map to split Axis and update godoc.
Diffstat (limited to 'cell.go')
-rw-r--r--cell.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cell.go b/cell.go
index 4e84260..df2d13b 100644
--- a/cell.go
+++ b/cell.go
@@ -10,7 +10,7 @@ import (
func (f *File) GetCellValue(sheet string, axis string) string {
axis = strings.ToUpper(axis)
var xlsx xlsxWorksheet
- row := getRowIndex(axis)
+ row, _ := strconv.Atoi(strings.Map(intOnlyMapF, axis))
xAxis := row - 1
name := `xl/worksheets/` + strings.ToLower(sheet) + `.xml`
xml.Unmarshal([]byte(f.readXML(name)), &xlsx)