Go · Function
panic
panic starts stack unwinding and runs deferred functions. recover can stop that unwinding only when called directly by a deferred function in the same goroutine.
Last updated
Syntax
func recover() anyIn-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
panicdefererrorgoroutine