mirror of
https://github.com/unknwon/the-way-to-go_ZH_CN.git
synced 2025-08-12 05:33:04 +08:00
一些小瑕疵的更正
This commit is contained in:
@@ -254,7 +254,7 @@ outputFile, outputError := os.OpenFile(“output.dat”, os.O_WRONLY|os.O_ CREAT
|
|||||||
我们通常会用到以下标志:
|
我们通常会用到以下标志:
|
||||||
|
|
||||||
- `os.O_RDONLY`:只读
|
- `os.O_RDONLY`:只读
|
||||||
- `os.WRONLY`:只写
|
- `os.O_WRONLY`:只写
|
||||||
- `os.O_CREATE`:创建:如果指定文件不存在,就创建该文件。
|
- `os.O_CREATE`:创建:如果指定文件不存在,就创建该文件。
|
||||||
- `os.O_TRUNC`:截断:如果指定文件已存在,就将该文件的长度截为0。
|
- `os.O_TRUNC`:截断:如果指定文件已存在,就将该文件的长度截为0。
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user