gitlab.com/Raven-IO/raven-delve@v1.22.4/_fixtures/issue2023.go (about)

     1  package main
     2  
     3  import (
     4  	"fmt"
     5  	"time"
     6  )
     7  
     8  func A() {
     9  	fmt.Printf("hello delve\n")
    10  }
    11  
    12  func main() {
    13  	count := 0
    14  	for {
    15  		A()
    16  		time.Sleep(time.Millisecond * time.Duration(100))
    17  		if count >= 30 {
    18  			break
    19  		}
    20  		count++
    21  	}
    22  }