Files
script/output_mem.go

20 lines
278 B
Go
Raw Permalink Normal View History

2025-08-30 22:00:31 +03:00
package script
type MemWriter struct {
rows [][]string
}
func NewMemWriter() *MemWriter {
return new(MemWriter)
}
func (m *MemWriter) Write(record []string) error {
2025-08-30 22:00:31 +03:00
m.rows = append(m.rows, record)
return nil
}
func (m *MemWriter) Output() [][]string {
return m.rows
}