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

     1  package main
     2  
     3  import "fmt"
     4  
     5  func typicalFunction() (res int) {
     6  	defer func() {
     7  		res = 2
     8  		return
     9  	}()
    10  	res = 10
    11  	return // setup breakpoint here
    12  }
    13  
    14  func main() {
    15  	fmt.Println(typicalFunction())
    16  }