csv

package
v1.4.9 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Csv

type Csv struct {
	Path   string
	Data   [][]string
	File   *os.File
	Writer *csv.Writer
}

func New

func New(path string) *Csv

New 创建对象

func (*Csv) Create

func (c *Csv) Create() *Csv

Create 创建目录

func (*Csv) Flush added in v1.4.8

func (c *Csv) Flush()

Flush 写入数据

func (*Csv) Insert

func (c *Csv) Insert(data [][]string)

Insert 插入数据

func (*Csv) InsertOne added in v1.4.8

func (c *Csv) InsertOne(data []string) *Csv

InsertOne 插入数据

func (*Csv) Read

func (c *Csv) Read() [][]string

Read 读取大文件

func (*Csv) ReadSmallFile added in v1.4.8

func (c *Csv) ReadSmallFile() [][]string

ReadSmallFile 读取小文件

Jump to

Keyboard shortcuts

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