File tree 1 file changed +9
-3
lines changed
1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,12 @@ import (
30
30
"github.com/spatialcurrent/go-stringify/pkg/stringify"
31
31
)
32
32
33
+ const (
34
+ NoSkip = 0 // used as SkipLines parameter to indicate no skipping when reading
35
+ NoLimit = - 1 // used to indicate that there is no limit on reading or writing, depending on context.
36
+ NoComment = "" // used to indicate that there is no comment prefix to consider.
37
+ )
38
+
33
39
const (
34
40
FormatBSON = "bson" // Binary JSON
35
41
FormatCSV = "csv" // Comma-Separated Values
@@ -44,8 +50,6 @@ const (
44
50
FormatTOML = "toml" // TOML
45
51
FormatTSV = "tsv" // Tab-Separated Values
46
52
FormatYAML = "yaml" // YAML
47
-
48
- NoLimit = - 1
49
53
)
50
54
51
55
var (
@@ -137,7 +141,9 @@ type Serializer struct {
137
141
// New returns a new serializer with the given format.
138
142
func New (format string ) * Serializer {
139
143
return & Serializer {
140
- format : format ,
144
+ format : format ,
145
+ skipLines : NoSkip ,
146
+ limit : NoLimit ,
141
147
}
142
148
}
143
149
You can’t perform that action at this time.
0 commit comments