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.
Glossary: Go Beyond the Basics
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.