We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c280126 commit 94d9371Copy full SHA for 94d9371
src/os/file.go
@@ -60,7 +60,8 @@ var (
60
)
61
62
// Flags to OpenFile wrapping those of the underlying system. Not all
63
-// flags may be implemented on a given system.
+// flags may be implemented on a given system. Each call to OpenFile
64
+// should specify exactly one of O_RDONLY, O_WRONLY, or O_RDWR.
65
const (
66
O_RDONLY int = syscall.O_RDONLY // open the file read-only.
67
O_WRONLY int = syscall.O_WRONLY // open the file write-only.
0 commit comments