Skip to content

Glossary: Go Beyond the Basics

recover

A built-in that, when called in a deferred function, stops a panic and returns its value (nil if there was no panic). It guards goroutines you start yourself.

Where the book teaches it

Related terms

panicdefer