gocsv: github.com/foolin/gocsv Index | Files | Directories

package gocsv

import "github.com/foolin/gocsv"

Index

Package Files

gocsv.go

func Read Uses

func Read(file string, isGbk bool) (list []map[string]interface{}, err error)

Read read for map array

func ReadLines Uses

func ReadLines(file string, isGbk bool) (lines [][]string, err error)

Read read csv for handle

func ReadList Uses

func ReadList(file string, isGbk bool, out interface{}) (err error)

ReadList read for []struct

func ReadMap Uses

func ReadMap(file string, isGbk bool, keyField string, out interface{}) (err error)

ReadList read for map[interface{}]struct

func ReadRaw Uses

func ReadRaw(file string, isGbk bool, handle func([]Field) error) (err error)

Read read csv for handle

type Field Uses

type Field struct {
    Name  string
    Value string
    Kind  string
}

Field field info

Directories

PathSynopsis
example
tools/csv2cson
tools/csv2json
tools/generator
tools/mergecsv

Package gocsv imports 9 packages (graph) and is imported by 3 packages. Updated 2017-03-12. Refresh now. Tools for package owners.