antha: github.com/antha-lang/antha/antha/anthalib/data/csv Index | Files | Directories

package csv

import "github.com/antha-lang/antha/antha/anthalib/data/csv"

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

Package Files

doc.go reader.go schema.go writer.go

func TableFromBytes Uses

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

TableFromBytes reads a data.Table eagerly from a memory buffer

func TableFromFile Uses

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

TableFromFile reads a data.Table eagerly from a CSV file

func TableFromReader Uses

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

TableFromReader reads a data.Table eagerly from io.Reader

func TableToBytes Uses

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

TableToBytes writes a data.Table to a memory buffer

func TableToFile Uses

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

TableToFile writes a data.Table to a CSV file

func TableToWriter Uses

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

TableToWriter writes a data.Table to io.Writer

Directories

PathSynopsis
example

Package csv imports 12 packages (graph) and is imported by 1 packages. Updated 2019-05-17. Refresh now. Tools for package owners.