We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
See example here: https://go.dev/play/p/LPHV70Rc8KP
package main import ( "fmt" "time" "github.com/gocarina/gocsv" ) type Nested struct { UpdatedAt *time.Time `csv:"updated_at"` } type Row struct { Name string `csv:"name"` Data Nested `csv:"data"` } func main() { now := time.Now() dat := []Row{{Name: "matthew", Data: Nested{UpdatedAt: &now}}} csv, err := gocsv.MarshalString(dat) if err != nil { panic(fmt.Sprintf("marshal failed: %v", err)) } fmt.Println(csv) }
Expected:
name,data.updated_at matthew,2009-11-10T23:00:00Z
Got:
name,data.UpdatedAt matthew,2009-11-10T23:00:00Z
The text was updated successfully, but these errors were encountered:
@sgtsquiggs
I fixed it. Please check it out!
Sorry, something went wrong.
No branches or pull requests
See example here: https://go.dev/play/p/LPHV70Rc8KP
Expected:
Got:
The text was updated successfully, but these errors were encountered: