diff options
Diffstat (limited to '')
-rw-r--r-- | reader/reader.go | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/reader/reader.go b/reader/reader.go index b5d088b..c49bd5a 100644 --- a/reader/reader.go +++ b/reader/reader.go @@ -12,6 +12,9 @@ import ( "github.com/tealeg/xlsx" ) +const maxCols = 16384 +const maxAlphabets = (maxCols / 26) - 1 + //DatamapLine - a line from the datamap. type DatamapLine struct { Key string @@ -84,10 +87,10 @@ func alphaSingle() []string { return letters } -var alphaStream = alphas(10) +var alphaStream = alphas(maxAlphabets) //alphas generates the alpha column compont of Excel cell references -//Combines n alphabets to do this. +//Adds n alphabets to the first (A..Z) alphabet. func alphas(n int) []string { single := alphaSingle() slen := len(single) |