csv

package
v1.5.4 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2018 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EOF = io.EOF

Functions

This section is empty.

Types

type Encoder added in v1.4.0

type Encoder struct {
	Delimiter     rune
	LineBreak     cmd.LineBreak
	WithoutHeader bool
	// contains filtered or unexported fields
}

func NewEncoder added in v1.4.0

func NewEncoder() *Encoder

func (*Encoder) ConvertCSVCell added in v1.4.0

func (e *Encoder) ConvertCSVCell(val value.Primary) string

func (*Encoder) Encode added in v1.4.0

func (e *Encoder) Encode(fieldList []string, recordSet [][]value.Primary) string

func (*Encoder) FormatString added in v1.4.0

func (e *Encoder) FormatString(s string) string

type Reader

type Reader struct {
	Delimiter   rune
	WithoutNull bool

	FieldsPerRecord int

	LineBreak cmd.LineBreak
	// contains filtered or unexported fields
}

func NewReader

func NewReader(r io.Reader) *Reader

func (*Reader) Read

func (r *Reader) Read() ([]value.Field, error)

func (*Reader) ReadAll

func (r *Reader) ReadAll() ([][]value.Field, error)

func (*Reader) ReadHeader

func (r *Reader) ReadHeader() ([]string, error)

Jump to

Keyboard shortcuts

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