summaryrefslogtreecommitdiff
path: root/rows.go
diff options
context:
space:
mode:
authorRi Xu <xuri.me@gmail.com>2017-06-27 17:53:06 +0800
committerRi Xu <xuri.me@gmail.com>2017-06-27 17:53:06 +0800
commit555e2ba9a82d6974077681c7ab34ce0fa93d351d (patch)
tree6d1d5ba963d1f2fc1cebebd61833e6b135ae8cc8 /rows.go
parent35841caaf18b20af9e7b942ca8cbb7441f310382 (diff)
- 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
Diffstat (limited to 'rows.go')
-rw-r--r--rows.go4
1 files changed, 2 insertions, 2 deletions
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
}