Alexey Ugnichev

53%
Flag icon
The zero value for a channel is nil. Perhaps surprisingly, nil channels are sometimes useful. Because send and receive operations on a nil channel block forever, a case in a select statement whose channel is nil is never selected.
The Go Programming Language
Rate this book
Clear rating
Open Preview