summaryrefslogtreecommitdiff
path: root/lib.go
diff options
context:
space:
mode:
Diffstat (limited to 'lib.go')
-rw-r--r--lib.go9
1 files changed, 6 insertions, 3 deletions
diff --git a/lib.go b/lib.go
index 3eda1eb..6058758 100644
--- a/lib.go
+++ b/lib.go
@@ -50,9 +50,12 @@ func readFile(file *zip.File) string {
return string(buff.Bytes())
}
-// toAlphaString provides function to convert integer to Excel sheet column
-// title.
-func toAlphaString(value int) string {
+// ToAlphaString provides function to convert integer to Excel sheet column
+// title. For example convert 37 to column title AK:
+//
+// excelize.ToAlphaString(37)
+//
+func ToAlphaString(value int) string {
if value < 0 {
return ""
}