csv

package
v0.0.0-...-e97ee80 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseFloat64

func ParseFloat64(s string) (float64, error)

Types

type Reader

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

func NewReader

func NewReader(r io.Reader) (*Reader, error)

func (*Reader) Next

func (r *Reader) Next() (*Row, error)

type Row

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

func (*Row) AsMap

func (r *Row) AsMap() map[string]string

func (*Row) Get

func (r *Row) Get(name string) (string, error)

func (*Row) GetDate

func (r *Row) GetDate(name string) (time.Time, error)

func (*Row) GetFloat64

func (r *Row) GetFloat64(
	name string,
	fn func(s string) (float64, error),
) (float64, error)

func (*Row) GetInt

func (r *Row) GetInt(
	name string,
	fn func(s string) (int, error),
) (int, error)

func (*Row) MustMarshal

func (r *Row) MustMarshal() []byte

Jump to

Keyboard shortcuts

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