Csv

package
v0.0.0-...-6428ba0 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompareData

func CompareData(expected []map[string]string, actual []map[string]string, checkAllWidths bool, t *testing.T)

Types

type Csv

type Csv struct {
	Headers  []string
	Data     []map[string]string
	Index    []int
	Raw      string
	RawPos   int
	EndRow   byte
	EndField byte
}

func ConstructTable

func ConstructTable(headers []string, data [][]string) *Csv

helpers that should be in a test file but cant due to export semantics

func NewCsv

func NewCsv() *Csv

func (*Csv) OperatorAnd

func (this *Csv) OperatorAnd(rhs *Csv) *Csv

func (*Csv) OperatorFilter

func (this *Csv) OperatorFilter(rhs *Csv) *Csv

func (*Csv) OperatorLess

func (this *Csv) OperatorLess(rhs *Csv) *Csv

func (*Csv) OperatorMinus

func (this *Csv) OperatorMinus(rhs *Csv) *Csv

func (*Csv) OperatorOr

func (this *Csv) OperatorOr(rhs *Csv) *Csv

func (*Csv) OperatorPlus

func (this *Csv) OperatorPlus(rhs *Csv) *Csv

func (*Csv) OperatorRandomSubset

func (this *Csv) OperatorRandomSubset(rhs string, random *rand.Rand) *Csv

func (*Csv) Read

func (this *Csv) Read(path string) bool

func (*Csv) ToString

func (this *Csv) ToString() string

Jump to

Keyboard shortcuts

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