diff options
author | Matthew Lemon <lemon@matthewlemon.com> | 2019-12-03 21:10:52 +0000 |
---|---|---|
committer | Matthew Lemon <lemon@matthewlemon.com> | 2019-12-03 21:10:52 +0000 |
commit | f39a87827136188197ab34576d2d9b2d533505c0 (patch) | |
tree | db6731c30959096e85880f3e2c0e8deed3c918f0 | |
parent | bf2456f380a7d21677d0c0cf116cc2cbb37bcc14 (diff) |
unexporting two funcs
-rw-r--r-- | coords.go | 4 | ||||
-rw-r--r-- | coords_test.go | 4 |
2 files changed, 4 insertions, 4 deletions
@@ -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) } |