-
Notifications
You must be signed in to change notification settings - Fork 248
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Fails if comma is present in a header name #235
Comments
@Elijas Lines 227 to 253 in 6445c2b
type SliceStructSample struct {
Slice []SliceStruct `csv:"s,slice" csv[]:"2"`
Slice2 []SliceStruct `csv:"sliceText"`
SimpleSlice []int `csv:"ints" csv[]:"3"`
Array [2]SliceStruct `csv:"a,array" csv[]:"2"`
}
type SliceStruct struct {
String string `csv:"s,string"`
Float float64 `csv:"f,float"`
}
SliceStructSample{
Slice: []SliceStruct{
{String: "s1", Float: 1.1},
{String: "s2", Float: 2.2},
},
SimpleSlice: []int{1, 2, 3},
Array: [2]SliceStruct{
{String: "s3", Float: 3.3},
{String: "s4", Float: 4.4},
},
} |
I also faced the same issue. While |
@Elijas @yuki2006 |
It seems to fail when a comma is present in a header name.
For example, given two headers:
header1_no_comma
header2,1_with_comma
Like in the following CSV file:
Reproduction
Actual output
Expected output
The text was updated successfully, but these errors were encountered: