XLSXToWriter exports XLSX format to a writer. Note: XLSX still materializes in memory due to excelize library limitations.
(w io.Writer, result *v1pb.QueryResult)
| 58 | // XLSXToWriter exports XLSX format to a writer. |
| 59 | // Note: XLSX still materializes in memory due to excelize library limitations. |
| 60 | func XLSXToWriter(w io.Writer, result *v1pb.QueryResult) error { |
| 61 | content, err := XLSX(result) |
| 62 | if err != nil { |
| 63 | return err |
| 64 | } |
| 65 | _, err = w.Write(content) |
| 66 | return err |
| 67 | } |
| 68 | |
| 69 | // ExcelColumnName converts a column index to Excel column name (A, B, ..., Z, AA, AB, ..., ZZZ). |
| 70 | func ExcelColumnName(index int) (string, error) { |
no test coverage detected