delve/_fixtures/testnextprog.go
Derek Parker a788e03c7b Implement initial next implementation
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.
2014-07-07 08:26:36 -05:00

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--
}
}