delve/_fixtures/testprog.go
2015-02-27 15:03:06 -06:00

27 lines
255 B
Go

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