Documentation ¶
Index ¶
Constants ¶
View Source
const (
CRLF = "\n"
)
Variables ¶
View Source
var ( FlagNoHeader bool FlagSeparator string FlagUseTestData bool FlagDebug bool )
Functions ¶
func CSVSliceToString ¶
CSVSliceToString converts a csv [][]string to a string
func CheckIfErrorAndPanic ¶
func CheckIfErrorAndPanic(err error)
CheckIfErrorAndPanic should be used to naively panics if an error is not nil.
func Difference ¶
Difference returns the elements in `a` that aren't in `b`.
Types ¶
type CSVObject ¶
CSVObject is a list of csv rows
func ReadCSV ¶
func ReadCSV() *CSVObject
ReadCSV reads the csv from stdin or returns test data if the test flag is set
func (*CSVObject) FilterColumns ¶
FilterColumns retains only the given fields
Click to show internal directories.
Click to hide internal directories.