gitlab.com/ethan.reesor/vscode-notebooks/yaegi@v0.0.0-20220417214422-5c573557938e/_test/recover2.go (about) 1 package main 2 3 func main() { 4 println("hello") 5 6 var r interface{} = 1 7 r = recover() 8 if r == nil { 9 println("world") 10 } 11 } 12 13 // Output: 14 // hello 15 // world