Signup/Sign In
Ask Question
Not satisfied by the Answer? Still looking for a better solution?

LEVEL 12 > LESSON 7

package main

import "fmt"

func stopPanic() {
fmt.Println(recover())
}

func startPanic() {
defer stopPanic()
panic("Oh no!")
}

func main() {
startPanic()
fmt.Println("Exiting normally")
}

Is there something wrong?
by

0 Answers

No Answer posted yet.

Login / Signup to Answer the Question.