Skip to content
CodeWiki
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
Search
⌘K
English
English
Chinese
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
English
English
Chinese
Practice
/
Quiz
/
Go
/
Go
How does a `select` treat a send or receive case whose channel is nil?
from Go
intermediate
1 min
How does a `select` treat a send or receive case whose channel is nil?
That case is disabled and cannot be selected while the channel remains nil.
That case is always ready and wins over other cases.
The `select` panics as soon as it evaluates the nil channel.
Check
Ask AI about this kata
Report an error
previous kata
A service struct contains a `sync.Mutex` that has already been used. Which change is safe?
Quiz
next kata
What must happen before a send on an unbuffered channel can complete?
Quiz
A new version is available
Reload