From 555e2ba9a82d6974077681c7ab34ce0fa93d351d Mon Sep 17 00:00:00 2001 From: Ri Xu Date: Tue, 27 Jun 2017 17:53:06 +0800 Subject: - Make function `TitleToNumber()` exportable, note that function `ToAlphaString()` return value calculation changes, get more info from go doc. Relate issue #63; - Readme and go doc updated --- rows.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'rows.go') diff --git a/rows.go b/rows.go index f594092..1d94a6c 100644 --- a/rows.go +++ b/rows.go @@ -56,7 +56,7 @@ func (f *File) GetRows(sheet string) [][]string { decoder.DecodeElement(&r, &startElement) cr := r.R - 1 for _, colCell := range r.C { - c := titleToNumber(strings.Map(letterOnlyMapF, colCell.R)) + c := TitleToNumber(strings.Map(letterOnlyMapF, colCell.R)) val, _ := colCell.getValueFrom(f, d) rows[cr][c] = val } @@ -88,7 +88,7 @@ func (f *File) getTotalRowsCols(sheet string) (int, int) { decoder.DecodeElement(&r, &startElement) tr = r.R for _, colCell := range r.C { - col := titleToNumber(strings.Map(letterOnlyMapF, colCell.R)) + col := TitleToNumber(strings.Map(letterOnlyMapF, colCell.R)) if col > tc { tc = col } -- cgit v1.2.1