package main
type gopher struct{}
func (g *gopher) selfRecover() (r bool) {
if b, ok := recover().(*gopher); ok {
r = g == b
}
return
}
func main() {
var g gopher
defer g.selfRecover()
panic(&g)
}
⌨️
I try not to panic...
Gopher all the time and sometimes a DevOps Consultant
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.