From b97599c1f2b364d5970bbfb7b46b04b5c0213270 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E9=81=87=E6=96=87?= Date: Wed, 10 May 2023 16:05:56 +0800 Subject: [PATCH] fix lack of result num --- result.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/result.go b/result.go index c034028..a08c2f2 100644 --- a/result.go +++ b/result.go @@ -33,6 +33,14 @@ func (r *Result) addError(info ErrorInfo) { r.errors = append(r.errors, info) } +func (r *Result) TotalNum() int { + return r.totalRow +} + +func (r *Result) ErrorNum() int { + return r.errorRow +} + func (f *File) removeDataLine(results *Result) (err error) { var rows *excelize.Rows if rows, err = f.excel().Rows(results.SheetName); err != nil {