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
/
defer, panic and recover
When can recover stop a panic?
from defer, panic and recover
Go 1.27
intermediate
1 min
When can recover stop a panic?
When a deferred function in the same goroutine calls recover directly
Whenever any parent goroutine has deferred recover
When an ordinary helper called by a deferred function calls recover
Whenever recover appears lexically above panic
Check
Ask AI about this kata
Report an error
previous kata
What does this program print?
Predict the output
next kata
Review a generated batch exporter
Review AI code
A new version is available
Reload