csv

package
v0.0.0-...-8707e75 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FindPathVarReg = regexp.MustCompile(`//(row\[)?(\d+)(\])?/(col\[)?(\d+)(\])?`)

Functions

func DefaultGetSepFunc

func DefaultGetSepFunc() string

func GetValue

func GetValue(doc [][]string, path string) (string, error)

func GetVar

func GetVar(pathFilled string) (row int, col int, err error)

Types

type Unmarshaler

type Unmarshaler struct {
	base.DataLoader
	Encoding     encoding.Encoding
	GetSepFunc   func() string
	RowParseFunc func(string) []string
}

ColCount不为0时,用于过滤长度不匹配的行

func (*Unmarshaler) GetDoc

func (m *Unmarshaler) GetDoc(r io.Reader) (re [][]string, err error)

func (*Unmarshaler) Unmarshal

func (m *Unmarshaler) Unmarshal(r io.Reader, data interface{}) error

Jump to

Keyboard shortcuts

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