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
Copy file name to clipboardExpand all lines: pkg/iterator/Iterator.go
+25-24Lines changed: 25 additions & 24 deletions
Original file line number
Diff line number
Diff line change
@@ -30,19 +30,20 @@ type Iterator interface {
30
30
31
31
// Input for NewIterator function.
32
32
typeNewIteratorInputstruct {
33
-
Reader io.Reader// the underlying reader
34
-
Formatstring// the format
35
-
Header []interface{} // for csv and tsv, the header. If not given, then reads first line of stream as header.
36
-
SkipLinesint// Skip a given number of lines at the beginning of the stream.
37
-
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.
38
-
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
-
Commentstring// The comment line prefix. CSV and TSV only support single characters. JSON Lines support any string.
40
-
Trimbool// Trim each input line before parsing into an object.
41
-
LazyQuotesbool// for csv and tsv, parse with lazy quotes
42
-
Limitint// Limit the number of objects to read and return from the underlying stream.
43
-
LineSeparatorbyte// For JSON Lines, the new line byte.
44
-
DropCRbool// For JSON Lines, drop carriage returns at the end of lines.
45
-
Type reflect.Type//
33
+
Reader io.Reader// the underlying reader
34
+
Formatstring// the format
35
+
Header []interface{} // for csv and tsv, the header. If not given, then reads first line of stream as header.
36
+
SkipLinesint// Skip a given number of lines at the beginning of the stream.
37
+
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.
38
+
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
+
Commentstring// The comment line prefix. CSV and TSV only support single characters. JSON Lines support any string.
40
+
Trimbool// Trim each input line before parsing into an object.
41
+
LazyQuotesbool// for csv and tsv, parse with lazy quotes
42
+
Limitint// Limit the number of objects to read and return from the underlying stream.
43
+
KeyValueSeparatorstring// For tags, the key-value separator.
44
+
LineSeparatorbyte// For JSON Lines, the new line byte.
45
+
DropCRbool// For JSON Lines, drop carriage returns at the end of lines.
46
+
Type reflect.Type//
46
47
}
47
48
48
49
// NewIterator returns an Iterator for the given input source, format, and other options.
0 commit comments