csvtools

package module
v0.0.0-...-1f8ba8a Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2019 License: MIT Imports: 4 Imported by: 1

README

csvtools

csv解析工具包 拥有更多的容错性

安装
go get github.com/dollarkillerx/csvtools
使用
	csv, e := csvtools.ReadFile("test.csv")
	if e != nil {
		panic(e)
	}
	strings := csv.Decode(0,2)  // 如果为空 就打印全部  ,反之打印指定序号的
	if e != nil {
		panic(e)
	}
	for _, v := range strings {
		log.Println(v)
	}

Documentation

Overview

*

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadByte

func ReadByte(byt []byte) (*csv, error)

func ReadFile

func ReadFile(file string) (*csv, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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