mirror of
https://github.com/unknwon/the-way-to-go_ZH_CN.git
synced 2025-08-12 00:43:26 +08:00
翻译11.12部分内容
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# 用切片读写文件
|
||||
# 12.6 用切片读写文件
|
||||
|
||||
切片提供了 Go 中处理 I/O 缓冲的标准方式,下面 `cat` 函数的第二版中,在一个切片缓冲内使用无限 for 循环(直到文件尾部 EOF)读取文件,并写入到标准输出(`os.Stdout`)。
|
||||
|
||||
|
Reference in New Issue
Block a user