mmcgrana / gobyexample

Go by Example
https://gobyexample.com
7.16k stars 1.26k forks source link

Add example: Operaions on closed channels #497

Closed zhuboris closed 9 months ago

zhuboris commented 9 months ago

I think that the Closing Channels page should include an explanation of what happens when you read from and write to a closed channel. I would like to add a short example at the end of the section.

eliben commented 9 months ago

No objections in principle, but note that the example following that one is about ranging over a channel until it's closed