第十二章修改 (#838)

Co-authored-by: Joe Chen <jc@unknwon.io>
This commit is contained in:
Haigang Zhou
2022-05-12 21:59:20 +08:00
committed by GitHub
parent e394361869
commit d29644465a
13 changed files with 83 additions and 83 deletions

View File

@@ -1,6 +1,6 @@
# 12.6 用切片读写文件
切片提供了 Go 中处理 I/O 缓冲的标准方式,下面 `cat` 函数的第二版中,在一个切片缓冲内使用无限 for 循环(直到文件尾部 EOF读取文件并写入到标准输出`os.Stdout`)。
切片提供了 Go 中处理 I/O 缓冲的标准方式,下面 `cat` 函数的第二版中,在一个切片缓冲内使用无限 `for` 循环(直到文件尾部 `EOF`)读取文件,并写入到标准输出(`os.Stdout`)。
```go
func cat(f *os.File) {