parser

package
v1.5.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	EncodeBig5 = Encode("big5")
	EncodeUtf8 = Encode("utf8")
)

Variables

This section is empty.

Functions

func NewCsvHeaderParser

func NewCsvHeaderParser(reader io.Reader, encode Encode) ([]string, error)

Types

type Encode

type Encode string

type Parser

type Parser interface {
	Header() []string
	Next() bool
	Row() Row
	Err() error
}

func NewCsvParser

func NewCsvParser(reader io.Reader, encode Encode) (Parser, error)

type Row

type Row interface {
	GetVal(header string) (string, error)
}

Jump to

Keyboard shortcuts

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