Recent Activity








超哥
User for 4 years
Viewer
4 years ago 评论 JSON 处理篇(下):未知结构 JSON 数据解码和 JSON 流式读写实现可以这样理解吗?Newdecoder()获取解码器,解码器调用decode进行解密。 同理Newencoder()获取编码器,跟encode进行编码。类似php的json_decode与json...
4 years ago 评论 通过 context 包提供的函数实现多协程之间的协作我是这里理解的:main里面for循环每次都会执行AddNum函数,AddNum函数没执行一次都会执行一个兜底defer,defer里面只有atomic.LoadInt32(&num) ...
4 years ago 评论 类属性和方法的可见性倒数第三行这里是不是应该传指针才对? dog := animal2.Dog{&ani}
4 years ago 评论 流程控制篇(四):跳转语句continue:跳出当前执行流程 break:跳出当前循环 break 标签:跳出指定循环
4 years ago 评论 函数篇(四):匿名函数与闭包总结: 匿名函数:没有变量名称的函数 闭包:匿名函数引用了外部变量(自由变量) 自由变量:闭包存在,外部变量就存在,就能使用