From 2e8fa2d39c8771c6f79c59e708f2b443302ade7f Mon Sep 17 00:00:00 2001 From: Ri Xu Date: Mon, 12 Sep 2016 17:37:06 +0800 Subject: Use conjunction with strings.Map to split Axis and update godoc. --- cell.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cell.go') 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) -- cgit v1.2.1