csvfilter

package
v0.0.0-...-617864f Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OR_FILTER  = false
	AND_FILTER = true
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Reader

type Reader struct {
	// contains filtered or unexported fields
}

Reader reads only rows that meet the filters from a csv filter

func NewReader

func NewReader(r csvReader, filters []func([]string) bool, filterType bool) *Reader

NewReader creates a reader from a csvReader interface

func (*Reader) Err

func (r *Reader) Err() error

Returns an error, if there was one

func (*Reader) Row

func (r *Reader) Row() []string

func (*Reader) Scan

func (r *Reader) Scan() bool

Scan loads a row and err and returns if it could find a row that met the specified filters

Jump to

Keyboard shortcuts

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