csv

package
v1.6.5 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CSV added in v1.5.1

type CSV struct {
	FileName string
	Data     [][]string
	// contains filtered or unexported fields
}

CSV 操作结构体

func NewCSV added in v1.5.1

func NewCSV(fileName string) (*CSV, error)

NewCSV 创建CSV实例

func (*CSV) AddRow added in v1.5.1

func (c *CSV) AddRow(row []string) *CSV

AddRow 添加一行记录

func (*CSV) Create added in v1.5.1

func (c *CSV) Create() error

Create 创建目录

func (*CSV) DeleteRow added in v1.5.1

func (c *CSV) DeleteRow(index int) error

DeleteRow 删除一行记录

func (*CSV) Read added in v1.5.1

func (c *CSV) Read() error

Read 读取CSV文件内容

func (*CSV) UpdateRow added in v1.5.1

func (c *CSV) UpdateRow(index int, row []string) *CSV

UpdateRow 更新一行记录

func (*CSV) Write added in v1.5.1

func (c *CSV) Write() error

Write 写入CSV文件内容

Jump to

Keyboard shortcuts

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