You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ErrMissingLineSeparator=errors.New("missing line separator")
28
+
)
29
+
24
30
// Iterator is a simple interface that supports iterating over an input object source.
25
31
typeIteratorinterface {
26
32
Next() (interface{}, error) // Returns the next object or error if any. When input is exhausted, returns (nil, io.EOF).
@@ -31,6 +37,7 @@ type NewIteratorInput struct {
31
37
Reader io.Reader// the underlying reader
32
38
Formatstring// the format
33
39
Header []interface{} // for csv and tsv, the header. If not given, then reads first line of stream as header.
40
+
ScannerBufferSizeint// the initial buffer size for the scanner
34
41
SkipLinesint// Skip a given number of lines at the beginning of the stream.
35
42
SkipBlanksbool// Skip blank lines. If false, Next() returns a blank line as (nil, nil). If true, Next() simply skips forward until it finds a non-blank line.
36
43
SkipCommentsbool// Skip commented lines. If false, Next() returns a commented line as (nil, nil). If true, Next() simply skips forward until it finds a non-commented line.
@@ -39,7 +46,7 @@ type NewIteratorInput struct {
39
46
LazyQuotesbool// for csv and tsv, parse with lazy quotes
40
47
Limitint// Limit the number of objects to read and return from the underlying stream.
41
48
KeyValueSeparatorstring// For tags, the key-value separator.
42
-
LineSeparatorbyte// For JSON Lines, the new line byte.
49
+
LineSeparatorstring// For JSON Lines, the new line byte.
43
50
DropCRbool// For JSON Lines, drop carriage returns at the end of lines.
44
51
Type reflect.Type//
45
52
}
@@ -51,18 +58,24 @@ type NewIteratorInput struct {
0 commit comments