Stdle #30 · defer · 2026-07-06
What does this Go snippet output?
A past puzzle — fully playable. 4 attempts, hints on wrong guesses.
package main import "fmt" func f() (n int) { defer func() { recover() }() defer func() { panic("second") }() panic("first")} func main() { fmt.Println(f())}Defer