csv

package
v1.1.8 Latest Latest
Warning

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

Go to latest
Published: May 21, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Extensions = map[string]bool{
	".csv": true,
	".tsv": true,
}

Functions

This section is empty.

Types

type CSV

type CSV struct {
	Header    bool      `yaml:"header"`
	Path      string    `yaml:"path"` // Path and filename with extension to save results.
	Extension Extension `yaml:"extension"`
	Separator Separator `yaml:"separator"` // comma (default) or tab.
}

func (*CSV) Create

func (c *CSV) Create() error

func (*CSV) IsValid

func (c *CSV) IsValid() error

func (*CSV) Write

func (c *CSV) Write(chIn <-chan []string) error

type Extension

type Extension string

type Separator

type Separator string
const (
	TAB   Separator = "TAB"
	COMMA           = "COMMA"
)

Jump to

Keyboard shortcuts

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