summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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)
}