Skip to content

EasyConceptErrors, testing and tooling

What is panic and recover?

What a good answer covers

panic stops normal execution and unwinds the stack running deferred calls. recover inside a deferred function catches it. Use panic only for unrecoverable programmer errors.

More on Errors, testing and tooling

Flashcards for this topic