会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
CJ-cooper
博客园
首页
新随笔
联系
订阅
管理
2021年8月31日
【Golang详解】go语言中的defer
摘要: defer 用于延迟函数的调用,每次defer都会把一个函数压入栈中,函数返回前再把延迟的函数取出并执行 数据结构 type _defer struct { sp uintptr //函数栈指针 pc uintptr //程序计数器 fn *funcval //函数地址 link *_defer /
阅读全文
posted @ 2021-08-31 17:38 CJ-cooper
阅读(168)
评论(0)
推荐(0)
编辑