Files
LearnGO/go/pkg/mod/github.com/go-delve/delve@v1.23.0/_fixtures/testprog.go
T
2024-09-19 21:38:24 -04:00

27 lines
276 B
Go

package main
import (
"fmt"
"runtime"
"time"
)
func helloworld() {
fmt.Println("Hello, World!")
}
func sleepytime() {
time.Sleep(time.Millisecond)
}
func main() {
for i := 0; i < 500; i++ {
sleepytime()
helloworld()
}
}
func init() {
runtime.LockOSThread()
}