The Go Programming Language Specification https://go.dev/ref/spec
Defer statements https://go.dev/ref/spec#Defer_statements Peter On Friday, December 24, 2021 at 8:34:58 AM UTC-5 muhorto...@gmail.com wrote: > https://play.golang.com/p/lypWMc6Kuff > Why do we get 2 in test() and 1 in anotherTest()? Is it related to the > definition of the variable in the output? > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/2ef0cabe-ae0b-4c67-b92b-a7fbe8239c2an%40googlegroups.com.