csv

package
v0.0.0-...-040724e Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2019 License: BSD-3-Clause, GPL-2.0, BSD-3-Clause, + 1 more Imports: 12 Imported by: 1

Documentation

Overview

Package csv provides tools for data tables seriaization to/from CSV files.

The following CSV files format is currently supported:

"column1name,column1type","column2name,column2type", ... ,"columnNname,columnNtype"
value1_1,value1_2, ... , value1_N
value2_1,value2_2, ... , value2_N

The following column types are currently supported:

bool
int64
float64
string
TimestampMillis
TimestampMicros

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TableFromBytes

func TableFromBytes(buffer []byte) (*data.Table, error)

TableFromBytes reads a data.Table eagerly from a memory buffer

func TableFromFile

func TableFromFile(filePath string) (*data.Table, error)

TableFromFile reads a data.Table eagerly from a CSV file

func TableFromReader

func TableFromReader(reader io.Reader) (*data.Table, error)

TableFromReader reads a data.Table eagerly from io.Reader

func TableToBytes

func TableToBytes(table *data.Table) ([]byte, error)

TableToBytes writes a data.Table to a memory buffer

func TableToFile

func TableToFile(table *data.Table, filePath string) error

TableToFile writes a data.Table to a CSV file

func TableToWriter

func TableToWriter(table *data.Table, writer io.Writer) error

TableToWriter writes a data.Table to io.Writer

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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