From 14c6a198ce27b44fcce5447a2b757ce403ebb8fc Mon Sep 17 00:00:00 2001 From: xuri <xuri.me@gmail.com> Date: Mon, 24 Oct 2022 00:02:22 +0800 Subject: Support get cell value which contains a date in the ISO 8601 format - Support set and get font color with indexed color - New export variable `IndexedColorMapping` - Fix getting incorrect page margin settings when the margin is 0 - Update unit tests and comments typo fixes - ref #65, new formula functions: AGGREGATE and SUBTOTAL --- stream.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'stream.go') diff --git a/stream.go b/stream.go index 44d8eb7..aaa4589 100644 --- a/stream.go +++ b/stream.go @@ -369,11 +369,11 @@ func (sw *StreamWriter) SetRow(cell string, values []interface{}, opts ...RowOpt if err != nil { return err } - sw.rawData.WriteString(`<row r="`) - sw.rawData.WriteString(strconv.Itoa(row)) - sw.rawData.WriteString(`"`) - sw.rawData.WriteString(attrs.String()) - sw.rawData.WriteString(`>`) + _, _ = sw.rawData.WriteString(`<row r="`) + _, _ = sw.rawData.WriteString(strconv.Itoa(row)) + _, _ = sw.rawData.WriteString(`"`) + _, _ = sw.rawData.WriteString(attrs.String()) + _, _ = sw.rawData.WriteString(`>`) for i, val := range values { if val == nil { continue @@ -643,12 +643,12 @@ type bufferedWriter struct { buf bytes.Buffer } -// Write to the in-memory buffer. The err is always nil. +// Write to the in-memory buffer. The error is always nil. func (bw *bufferedWriter) Write(p []byte) (n int, err error) { return bw.buf.Write(p) } -// WriteString wite to the in-memory buffer. The err is always nil. +// WriteString write to the in-memory buffer. The error is always nil. func (bw *bufferedWriter) WriteString(p string) (n int, err error) { return bw.buf.WriteString(p) } -- cgit v1.2.1