我正在查看 os 包文档并看到了这个:f, err := os.OpenFile("access.log", os.O_APPEND|os.O_CREATE|os.O_WRONLY, 0644)根据文档,其OpenFile签名func OpenFile(name string, flag int, perm FileMode) (*File, error)为什么这会os.O_APPEND|os.O_CREATE|os.O_WRONLY作为第二个参数传递?
- 1 回答
- 0 关注
- 78 浏览
添加回答
举报
0/150
提交
取消