Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CSVLineParser ¶
type CSVLineParser struct {
// contains filtered or unexported fields
}
func NewCSVLineParser ¶
func NewCSVLineParser(fieldsString string, trimLeadingSpace bool) (*CSVLineParser, error)
NewCSVLineParser factory
type Options ¶
type Options struct { Fields string `long:"fields" description:"Comma separated list of CSV fields, in order."` TimeFieldName string `long:"timefield" description:"Name of the field that contains a timestamp"` TimeFieldFormat string `long:"time_format" description:"Timestamp format to use (strftime and Golang time.Parse supported)"` NumParsers int `hidden:"true" description:"number of csv parsers to spin up"` TrimLeadingSpace bool `bool:"trim_leading_space" description:"trim leading whitespace in CSV fields and values" default:"false"` }
Options defines the options relevant to the CSV parser
Click to show internal directories.
Click to hide internal directories.