Handle nested structs in CSV
masterBy default, gocsv prefixes nested struct fields with the parent field's name (e.g., Parent.ChildField). To inline a nested struct and use its fields directly as top-level columns without a prefix, use the csv:"." tag on the nested field.
type Foo struct {
B Bar `csv:"."` // Fields in Bar will be 'a, b' instead of 'B.a, B.b'
X int `csv:"x"`
}
type Bar struct {
A int `csv:"a"`
B int `csv:"b"`
}