csvw

package
v0.34.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 8, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package csvw implements writers for CSV.

Index

Constants

View Source
const (
	// Tab is the tab rune.
	Tab = '\t'

	// Comma is the comma rune.
	Comma = ','
)

Variables

This section is empty.

Functions

func NewPingWriter

func NewPingWriter(out io.Writer, sep rune) output.PingWriter

NewPingWriter returns a new instance.

Types

type RecordWriter

type RecordWriter struct {
	// contains filtered or unexported fields
}

RecordWriter implements output.RecordWriter.

func NewRecordWriter

func NewRecordWriter(out io.Writer, pr *output.Printing, sep rune) *RecordWriter

NewRecordWriter returns a writer instance.

func (*RecordWriter) Close

func (w *RecordWriter) Close() error

Close implements output.RecordWriter.

func (*RecordWriter) Flush

func (w *RecordWriter) Flush() error

Flush implements output.RecordWriter.

func (*RecordWriter) Open

func (w *RecordWriter) Open(recMeta sqlz.RecordMeta) error

Open implements output.RecordWriter.

func (*RecordWriter) WriteRecords

func (w *RecordWriter) WriteRecords(recs []sqlz.Record) error

WriteRecords implements output.RecordWriter.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL