delve/_fixtures/testprog.go

27 lines
276 B
Go
Raw Permalink Normal View History

2014-05-20 18:23:35 +00:00
package main
import (
"fmt"
2015-01-14 02:37:10 +00:00
"runtime"
2014-05-20 18:23:35 +00:00
"time"
)
func helloworld() {
2014-05-20 18:23:35 +00:00
fmt.Println("Hello, World!")
}
func sleepytime() {
time.Sleep(time.Millisecond)
}
func main() {
for i := 0; i < 500; i++ {
sleepytime()
helloworld()
}
}
2015-01-14 02:37:10 +00:00
func init() {
runtime.LockOSThread()
}