Ask your AI Ask your AI to turn this code into a guided bug-finding exercise.
Claude ChatGPT I am reading "In `value, ok := <-ch`, which result becomes false after a closed channel has been drained?" on CodeWiki (https://codewiki.com/practice/fill/go/checkpoint-3/checkpoint-3-closed-receive/).
Context (verbatim from the page):
"""
In `value, ok := <-ch`, which result becomes false after a closed channel has been drained?
"""
Introduce three subtle bugs into the example above and let me find them. Reveal each answer only after I have guessed.
Answer in English. Keep code examples in Go. Where you are unsure, say so.