gitlab.com/ethan.reesor/vscode-notebooks/yaegi@v0.0.0-20220417214422-5c573557938e/_test/for15.go (about) 1 package main 2 3 func f() int { println("in f"); return 1 } 4 5 func main() { 6 for i := f(); ; { 7 println("in loop") 8 if i > 0 { 9 break 10 } 11 } 12 } 13 14 // Output: 15 // in f 16 // in loop