You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following program ends in a panic, though I would have expected the deferred
recover() to catch it.
package main
func main() {
defer recover()
panic(1)
}
Note: "defer func { recover() }()" works as expected.