grapeCSV

package
v0.0.0-...-5771147 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

自动反射和解析CSV文件,对于有列的文件则通过列名解析 version 1.0 beta by koangel email: jackliu100@gmail.com 2017/8/16

Index

Constants

View Source
const (
	Default_token   = ','
	Default_comment = '#'
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ParserCSV

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

func CreateCSV

func CreateCSV(filename string, token rune, header interface{}) (csv *ParserCSV, err error)

func NewCSV

func NewCSV(filename string, token rune, skipHead bool) (csv *ParserCSV, err error)

func NewCSVDefault

func NewCSVDefault(filename string) (csv *ParserCSV, err error)

func (*ParserCSV) Append

func (c *ParserCSV) Append(val interface{}) error

func (*ParserCSV) CloseAll

func (c *ParserCSV) CloseAll()

func (*ParserCSV) Create

func (c *ParserCSV) Create(filename string, token rune) error

func (*ParserCSV) GetRow

func (c *ParserCSV) GetRow(row int, val interface{}) error

func (*ParserCSV) Open

func (c *ParserCSV) Open(filename string, token rune, skipHead bool) error

func (*ParserCSV) OpenDefault

func (c *ParserCSV) OpenDefault(filename string) error

func (*ParserCSV) RowCount

func (c *ParserCSV) RowCount() int

func (*ParserCSV) SaveAll

func (c *ParserCSV) SaveAll()

func (*ParserCSV) SetHeader

func (c *ParserCSV) SetHeader(val interface{})

func (*ParserCSV) SetRow

func (c *ParserCSV) SetRow(row int, val interface{}) error

Jump to

Keyboard shortcuts

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