Code Room
Code reviewMediumcr-g618
Subject Storage flushLevel Mid–Senior~18 minCommon in Storage & CDN interviewsIndustries Software development

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.

Talk through your review
Code to reviewgo
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.