package main

import "fmt"

func main() {
    f()
}

func f() {
    defer func() {
        if r := recover(); r != nil {
            fmt.Println("recovered from ", r)
        }
    }()

    g()
}

func g() {
    defer func() {
        if r := recover(); r != nil {
            panic("abc")
        }
    }()

    h()
}

func h() {
    panic("hello world!")
}

Embed on website

To embed this program on your website, copy the following code and paste it into your website's HTML: