mirror of
https://github.com/unknwon/the-way-to-go_ZH_CN.git
synced 2025-08-12 04:48:29 +08:00
@@ -22,7 +22,7 @@ func cat(f *os.File) {
|
||||
}
|
||||
```
|
||||
|
||||
上面的代码来自于 `cat2.go`,使用了 os 包中的 `os.file` 和 `Read` 方法;`cat2.go` 与 `cat.go` 具有同样的功能。
|
||||
上面的代码来自于 `cat2.go`,使用了 os 包中的 `os.File` 和 `Read` 方法;`cat2.go` 与 `cat.go` 具有同样的功能。
|
||||
|
||||
示例 12.14 [cat2.go](examples/chapter_12/cat2.go):
|
||||
|
||||
|
Reference in New Issue
Block a user