
This current implementation does not cover the following: * Setting correct breakpoint when exiting loop * Setting correct breakpoint when returning from function * All facilities are available for this, it just is not taken into account in the current `next` implementation.
28 lines
245 B
Go
28 lines
245 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"time"
|
|
)
|
|
|
|
func sleepytime() {
|
|
time.Sleep(time.Millisecond)
|
|
}
|
|
|
|
func helloworld() {
|
|
fmt.Println("Hello, World!")
|
|
}
|
|
|
|
func main() {
|
|
i := 1
|
|
|
|
for {
|
|
i += i * (i ^ 3) / 100
|
|
|
|
sleepytime()
|
|
helloworld()
|
|
|
|
i--
|
|
}
|
|
}
|