1 package main 2 3 var called bool 4 5 func target() { 6 called = true 7 } 8 9 func main() { 10 jump() 11 if !called { 12 panic("target not called") 13 } 14 } 15