summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Lemon <lemon@matthewlemon.com>2019-12-03 21:10:52 +0000
committerMatthew Lemon <lemon@matthewlemon.com>2019-12-03 21:10:52 +0000
commitf39a87827136188197ab34576d2d9b2d533505c0 (patch)
treedb6731c30959096e85880f3e2c0e8deed3c918f0
parentbf2456f380a7d21677d0c0cf116cc2cbb37bcc14 (diff)
unexporting two funcs
-rw-r--r--coords.go4
-rw-r--r--coords_test.go4
2 files changed, 4 insertions, 4 deletions
diff --git a/coords.go b/coords.go
index e967c08..6dcff92 100644
--- a/coords.go
+++ b/coords.go
@@ -15,7 +15,7 @@ const (
// ColAlpha returns an alpha representation of a column index.
// index is an integer - ColAlpha(0) returns "A", etc.
-func ColIndexToAlpha(index int) (string, error) {
+func colIndexToAlpha(index int) (string, error) {
max := len(Colstream) - 1
if index <= max {
return Colstream[index], nil
@@ -29,7 +29,7 @@ var Colstream = cols(maxAlphabets)
// ColLettersToIndex converts an alpha column
// reference to a zero-based numeric column identifier.
-func ColAlphaToIndex(letters string) (int, error) {
+func colAlphaToIndex(letters string) (int, error) {
max := len(Colstream) - 1
for i, v := range Colstream {
if i > max {
diff --git a/coords_test.go b/coords_test.go
index 8244a85..1d69ef1 100644
--- a/coords_test.go
+++ b/coords_test.go
@@ -66,7 +66,7 @@ func TestCollectLetters(t *testing.T) {
{"AA", 26},
}
for _, c := range cases {
- s, err := ColAlphaToIndex(c.alpha)
+ s, err := colAlphaToIndex(c.alpha)
if err != nil {
t.Fatal(err)
}
@@ -88,7 +88,7 @@ func TestGetColApha(t *testing.T) {
{16377, "XEX"},
}
for _, c := range cases {
- s, err := ColIndexToAlpha(c.index)
+ s, err := colIndexToAlpha(c.index)
if err != nil {
t.Fatal(err)
}