From c49e7aab306437f0e721620af4a24364edf4d601 Mon Sep 17 00:00:00 2001 From: xuri Date: Mon, 9 Aug 2021 22:22:43 +0800 Subject: Reduce cyclomatic complexities for the formula calculate function and update documentation for the API: `MergeCell` and `GetCellValue` --- cell.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cell.go') diff --git a/cell.go b/cell.go index ad94038..f44e877 100644 --- a/cell.go +++ b/cell.go @@ -34,7 +34,8 @@ const ( // GetCellValue provides a function to get formatted value from cell by given // worksheet name and axis in spreadsheet file. If it is possible to apply a // format to the cell value, it will do so, if not then an error will be -// returned, along with the raw value of the cell. +// returned, along with the raw value of the cell. All cells value will be +// same in a merged range. func (f *File) GetCellValue(sheet, axis string) (string, error) { return f.getCellStringFunc(sheet, axis, func(x *xlsxWorksheet, c *xlsxC) (string, bool, error) { val, err := c.getValueFrom(f, f.sharedStringsReader()) -- cgit v1.2.1