From b69da7606395bb2b05c53512663a13cce80f87d7 Mon Sep 17 00:00:00 2001 From: xuri Date: Thu, 16 Jun 2022 00:01:32 +0800 Subject: ref #65, new formula functions: NETWORKDAYS, NETWORKDAYS.INTL, and WORKDAY --- rows.go | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'rows.go') diff --git a/rows.go b/rows.go index bcb8960..f83d425 100644 --- a/rows.go +++ b/rows.go @@ -28,11 +28,11 @@ import ( // GetRows return all the rows in a sheet by given worksheet name // (case sensitive), returned as a two-dimensional array, where the value of -// the cell is converted to the string type. If the cell format can be -// applied to the value of the cell, the applied value will be used, -// otherwise the original value will be used. GetRows fetched the rows with -// value or formula cells, the tail continuously empty cell will be skipped. -// For example: +// the cell is converted to the string type. If the cell format can be applied +// to the value of the cell, the applied value will be used, otherwise the +// original value will be used. GetRows fetched the rows with value or formula +// cells, the continually blank cells in the tail of each row will be skipped, +// so the length of each row may be inconsistent. For example: // // rows, err := f.GetRows("Sheet1") // if err != nil { @@ -122,7 +122,9 @@ func (rows *Rows) Close() error { return nil } -// Columns return the current row's column values. +// Columns return the current row's column values. This fetches the worksheet +// data as a stream, returns each cell in a row as is, and will not skip empty +// rows in the tail of the worksheet. func (rows *Rows) Columns(opts ...Options) ([]string, error) { if rows.curRow > rows.seekRow { return nil, nil -- cgit v1.2.1