delve/fixtures/livetestprog.go

18 lines
160 B
Go
Raw Normal View History

package main
import (
"fmt"
"os"
"time"
)
func main() {
pid := os.Getpid()
fmt.Println(pid)
time.Sleep(3 * time.Second)
for {
fmt.Println(pid)
}
}