fr
fr

Question from the Go test

Medium

Identify the error in the panic handling below.

func executer() {
    defer func() {
        // Tentative de récupération
        func() {
            if r := recover(); r != nil {
                fmt.Println("Panique capturée")
            }
        }()
    }()
    panic("échec critique")
}
Author: WeLoveDevsStatus: PublishedQuestion not yet passed
Edit
0
Community EvaluationsNo one has reviewed this question yet, be the first!