csv

package
v0.11.3 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2018 License: GPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Formatter

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

Formatter converts Rows into CSV format.

func New

func New(headers []string, out io.Writer) *Formatter

New returns a new tabwriter, if headers is not empty it's written as first row to the output

func (*Formatter) Flush

func (f *Formatter) Flush() error

Flush flushes the csvwriter buffer to it's output

func (*Formatter) WriteRow

func (f *Formatter) WriteRow(row []interface{}) error

WriteRow writes a row to the csvwriter buffer

Jump to

Keyboard shortcuts

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