Documentation ¶
Index ¶
- type CSVReader
- func (s *CSVReader) ColumnNumber() int
- func (s *CSVReader) EndOfRecord() bool
- func (s *CSVReader) Err() error
- func (s *CSVReader) Line() string
- func (s *CSVReader) LineNumber() int
- func (s *CSVReader) Read() ([]string, error)
- func (s *CSVReader) Scan() bool
- func (s *CSVReader) ScanLine(r []string) error
- func (s *CSVReader) Text() string
- type Profiler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CSVReader ¶
type CSVReader struct { // If true, the scanner will continue scanning if field-level errors are // encountered. The error should be checked after each call to Scan to // handle the error. ContinueOnError bool // contains filtered or unexported fields }
CSVReader provides an interface for reading CSV data (compatible with rfc4180 and extended with the option of having a separator other than ","). Successive calls to the Scan method will step through the 'fields', skipping the separator/newline between the fields. The EndOfRecord method tells when a field is terminated by a line break.
func DefaultCSVReader ¶
DefaultReader creates a "standard" CSV reader.
func NewCSVReader ¶
NewReader returns a new CSV scanner.
func (*CSVReader) ColumnNumber ¶
ColumnNumber returns the column index of the current field.
func (*CSVReader) EndOfRecord ¶
EndOfRecord returns true when the most recent field has been terminated by a newline (not a separator).
func (*CSVReader) LineNumber ¶
LineNumber returns current line number.
Click to show internal directories.
Click to hide internal directories.