fr
fr

Question from the Go test

Medium

What is the standard output after executing this code?

func main() {
    defer fmt.Println("1")
    defer func() {
        if r := recover(); r != nil {
            fmt.Println("2")
        }
    }()
    panic("erreur")
    defer fmt.Println("3")
}
Author: WeLoveDevsStatus: PublishedQuestion not yet passed
Edit
0
Community EvaluationsNo one has reviewed this question yet, be the first!