I'm not familiar enough with Go to understand why this is a challenge. What point are you trying to illustrate with the challenge? Is this easy or hard, and how does this compare to Loom and Structured Concurrency?
Many people in this thread are talking about structured concurrency in other languages. I brought up a fun one for golang that, as far as I can tell, is a 3 year old open issue [0] that I've recently bumped into.
Maybe this is a fun challenge for you to become more familiar with golang?
Maybe this is a fun challenge for you to become more familiar with golang?
[0] https://github.com/golang/go/issues/20280