Code Room
Code reviewMedium
Question
Review this Go CSV exporter.
What a strong answer looks like
Separate real bugs from style. Rank issues by severity, point at the root cause rather than the symptom, and suggest a concrete fix — specific and kind.
Learn the concepts
func exportCSV(path string, rows [][]string) error { f, err := os.Create(path) if err != nil { return err } defer f.Close() w := csv.NewWriter(bufio.NewWriter(f)) for _, row := range rows { if err := w.Write(row); err != nil { return err } } return nil // file written}Run or narrate your approach, then ask the coach.