summaryrefslogtreecommitdiff
path: root/lib.go
diff options
context:
space:
mode:
Diffstat (limited to 'lib.go')
-rw-r--r--lib.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib.go b/lib.go
index 88aa3a1..7dcc09e 100644
--- a/lib.go
+++ b/lib.go
@@ -206,8 +206,9 @@ func CoordinatesToCellName(col, row int) (string, error) {
if col < 1 || row < 1 {
return "", fmt.Errorf("invalid cell coordinates [%d, %d]", col, row)
}
+ //Using itoa will save more memory
colname, err := ColumnNumberToName(col)
- return fmt.Sprintf("%s%d", colname, row), err
+ return colname + strconv.Itoa(row), err
}
// boolPtr returns a pointer to a bool with the given value.