- 博客(1)
- 收藏
- 关注
原创 golang中defer的执行过程是怎样的?
在同一个goroutine中:多个defer的调用栈原理是什么?defer函数是如何调用的?为了探究其中的奥秘我准备了如下代码:package mainimport "fmt"func main() { xx()}func xx() { defer aaa(100, "hello aaa") defer bbb("hello bbb") return}func aa...
2019-07-18 21:05:19 277
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人