delve/_fixtures/testprog.go
Derek Parker 38bfdaf47c Implement initial support for stack unwinding.
Implement basic api for figuring out, given a current PC value, where
the function will return. Currently the API provides only a way to
determine the offset from SP (the Canonical Frame Address). It is left
up to the caller to grab the actual address from the traced program.
2014-06-25 14:14:29 -05:00

22 lines
203 B
Go

package main
import (
"fmt"
"time"
)
func sleepytime() {
time.Sleep(time.Millisecond)
}
func helloworld() {
fmt.Println("Hello, World!")
}
func main() {
for {
sleepytime()
helloworld()
}
}