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)
}-
Notifications
You must be signed in to change notification settings - Fork 0
marcin-janas/marcin-janas
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published