Code Room
Code reviewHard
Question
Review this Go code that streams and aggregates a paged API response.
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 loadAll(url string) ([]Item, error) { resp, err := http.Get(url) if err != nil { return nil, err } defer resp.Body.Close() dec := json.NewDecoder(resp.Body) var page Page dec.Decode(&page) return page.Items, nil}Run or narrate your approach, then ask the coach.