delve/_fixtures/testprog.go
Derek Parker 86e1530524 Improve next implementation
* Better tracking of current goroutine
* More efficient, eliminates superfluous step syscalls
* Handles concurrency and thread coordination better
2015-03-31 17:12:45 -05:00

27 lines
255 B
Go

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