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
- a slice of values. Note that the CSV record must be a valid JSON array. If not a JSON array, a custom decoder implementing the `csvdecoder.Interface` interface must be implemented.
25
-
- an array of values. Note that the CSV record must be a valid JSON array. If not a JSON array, a custom decoder implementing the `csvdecoder.Interface` interface must be implemented.
24
+
- a slice of values. Note that the CSV field must be a valid JSON array. If not a JSON array, a custom decoder implementing the `csvdecoder.Interface` interface must be implemented.
25
+
- an array of values. Note that the CSV field must be a valid JSON array. If not a JSON array, a custom decoder implementing the `csvdecoder.Interface` interface must be implemented.
26
26
- a pointer to any type implementing the `csvdecoder.Interface` interface
27
27
28
28
## Usage
@@ -91,7 +91,7 @@ See also the example files for more usage examples.
91
91
The behavior of the decoder can be configured by passing one of following options when creating the decoder:
92
92
- Comma: the character that separates values. Default value is comma.
93
93
- IgnoreHeaders: if set to true, the first line will be ignored. This is useful when the CSV file contains a header line.
94
-
- IgnoreUnmatchingFields: if set to true, the number of records and scan targets are allowed to be different. By default, if they don't match exactly it will cause an error.
94
+
- IgnoreUnmatchingFields: if set to true, the number of fields and scan targets are allowed to be different. By default, if they don't match exactly it will cause an error.
// - a slice of values. Note that the CSV record must be a valid JSON array. If not a JSON array, a custom decoder implementing the `csvdecoder.Interface` interface must be implemented.
16
-
// - an array of values. Note that the CSV record must be a valid JSON array. If not a JSON array, a custom decoder implementing the `csvdecoder.Interface` interface must be implemented.
15
+
// - a slice of values. Note that the CSV field must be a valid JSON array. If not a JSON array, a custom decoder implementing the `csvdecoder.Interface` interface must be implemented.
16
+
// - an array of values. Note that the CSV field must be a valid JSON array. If not a JSON array, a custom decoder implementing the `csvdecoder.Interface` interface must be implemented.
17
17
// - a pointer to any type implementing the `csvdecoder.Interface` interface
18
18
19
19
// csvdecoder uses the same terminology as package encoding/csv:
@@ -26,7 +26,7 @@
26
26
// The behavior of the decoder can be configured by passing one of following options when creating the decoder:
27
27
// - Comma: the character that separates values. The default value is comma.
28
28
// - IgnoreHeaders: if set to true, the first line will be ignored. This is useful when the CSV file contains a header line.
29
-
// - IgnoreUnmatchingFields: if set to true, the number of records and scan targets are allowed to be different. By default, if they don't match exactly it will cause an error.
29
+
// - IgnoreUnmatchingFields: if set to true, the number of fields and scan targets are allowed to be different. By default, if they don't match exactly it will cause an error.
0 commit comments