summaryrefslogtreecommitdiff
path: root/errors.go
diff options
context:
space:
mode:
authorxuri <xuri.me@gmail.com>2021-09-18 23:20:24 +0800
committerxuri <xuri.me@gmail.com>2021-09-19 11:06:54 +0800
commit790c363cceaaa09e91ad579e2d25cb13c1582bba (patch)
treeb5747f30edeac96a7fdadec574f1a5b1d332ca18 /errors.go
parent2add938798cdd1456616869298319528b0c76913 (diff)
This closes #833, closes #845, and closes #1022, breaking changes
- Close spreadsheet and row's iterator required - New options `WorksheetUnzipMemLimit` have been added - Improve streaming reading performance, memory usage decrease about 93.7%
Diffstat (limited to 'errors.go')
-rw-r--r--errors.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/errors.go b/errors.go
index 4cfd12e..9fc0957 100644
--- a/errors.go
+++ b/errors.go
@@ -131,4 +131,7 @@ var (
// ErrCellCharsLength defined the error message for receiving a cell
// characters length that exceeds the limit.
ErrCellCharsLength = fmt.Errorf("cell value must be 0-%d characters", TotalCellChars)
+ // ErrOptionsUnzipSizeLimit defined the error message for receiving
+ // invalid UnzipSizeLimit and WorksheetUnzipMemLimit.
+ ErrOptionsUnzipSizeLimit = errors.New("the value of UnzipSizeLimit should be greater than or equal to WorksheetUnzipMemLimit")
)