From f39a87827136188197ab34576d2d9b2d533505c0 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Tue, 3 Dec 2019 21:10:52 +0000 Subject: unexporting two funcs --- coords.go | 4 ++-- coords_test.go | 4 ++-- 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) } -- cgit v1.2.3