summaryrefslogtreecommitdiff
path: root/lib.go
diff options
context:
space:
mode:
authorxuri <xuri.me@gmail.com>2021-08-17 00:01:44 +0800
committerxuri <xuri.me@gmail.com>2021-08-17 00:01:44 +0800
commita55f354eb3d0c6c1b9a543ff8ff98227aa6063a6 (patch)
treeb8832692047821630388ce55b9323d5b2a17bb55 /lib.go
parentb02f864eab5edb2155601b9dd640f99fbd442cb3 (diff)
This closes #989, closes #990
New API: `SetRowStyle` support for set style for the rows Update documentation for the `GetRows`, `SetCellStyle` and `SetColStyle`
Diffstat (limited to 'lib.go')
-rw-r--r--lib.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib.go b/lib.go
index 81f1e53..424d3f9 100644
--- a/lib.go
+++ b/lib.go
@@ -196,7 +196,7 @@ func CellNameToCoordinates(cell string) (int, int, error) {
return -1, -1, fmt.Errorf(msg, cell, err)
}
if row > TotalRows {
- return -1, -1, fmt.Errorf("row number exceeds maximum limit")
+ return -1, -1, ErrMaxRows
}
col, err := ColumnNameToNumber(colname)
return col, row, err