diff options
author | xuri <xuri.me@gmail.com> | 2022-10-24 00:02:22 +0800 |
---|---|---|
committer | xuri <xuri.me@gmail.com> | 2022-10-24 00:52:09 +0800 |
commit | 14c6a198ce27b44fcce5447a2b757ce403ebb8fc (patch) | |
tree | a59eea77f6e6d691a1015afa2b3629cbe7cc695b /stream.go | |
parent | f843a9ea56710deb4cdb77ea2cd3a08d8d82d3e6 (diff) |
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
Diffstat (limited to 'stream.go')
-rw-r--r-- | stream.go | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -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) } |