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

17 lines
197 B
Go

package main
import "fmt"
func typicalFunction() (res int) {
defer func() {
res = 2
return
}()
res = 10
return // setup breakpoint here
}
func main() {
fmt.Println(typicalFunction())
}