mirror of
https://github.com/unknwon/the-way-to-go_ZH_CN.git
synced 2025-11-13 09:16:10 +08:00
翻译11.12部分内容
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# 用 defer 关闭文件
|
||||
# 12.7 用 defer 关闭文件
|
||||
|
||||
`defer` 关键字(参看 6.4)对于在函数结束时关闭打开的文件非常有用,例如下面的代码片段:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user