Suppose I have the following test file using the testify/assert
framework (to be run with "go test"):
https://play.golang.org/p/faJDJcI3MR
Regardless of assert function's implementation details, shouldn't the
output always be:
inside main test goroutine
foo
inside dummyfunc
?
But what I'm getting is:
inside dummyfunc
inside main test goroutine
foo
Maybe there's something I don't understand about defer. Someone please
enlighten me.
Thanks all
go version go1.7.1 linux/amd64
--
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.
For more options, visit https://groups.google.com/d/optout.