github.com/cnboonhan/delve@v0.0.0-20230908061759-363f2388c2fb/_fixtures/stacktraceprog.go (about)

     1  package main
     2  
     3  func stacktraceme() {
     4  	return
     5  }
     6  
     7  func func1() {
     8  	stacktraceme()
     9  }
    10  
    11  func func2(f func()) {
    12  	f()
    13  }
    14  
    15  func main() {
    16  	func1()
    17  	func2(func1)
    18  }