csv

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reader

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

Reader ...

func NewReader

func NewReader(file *os.File, method, rawurl, body string) *Reader

NewReader ...

func (Reader) Count

func (r Reader) Count() int

Count ...

func (Reader) Headers

func (r Reader) Headers() []string

Headers ...

func (*Reader) Read

func (r *Reader) Read() *Record

Read ...

type Record

type Record struct {
	Headers []string
	Body    []byte
	Fields  map[string]string

	Request *internal.Request
}

Record ...

type Writer

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

Writer ...

func NewWriter

func NewWriter(fileName string) (*Writer, error)

NewWriter ...

func (*Writer) Flush

func (w *Writer) Flush()

Flush ...

func (*Writer) Write

func (w *Writer) Write(row []string)

Write ...

func (*Writer) WriteAll

func (w *Writer) WriteAll(rows [][]string)

WriteAll ...

Jump to

Keyboard shortcuts

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