aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlex Brainman <alex.brainman@gmail.com>2018-03-25 10:56:11 +1100
committerAlex Brainman <alex.brainman@gmail.com>2018-03-25 00:45:33 +0000
commit782f9ce52f5e021a8d0b0140919afecf0733c4a7 (patch)
tree77c6b7db03ee872ffa67638af2f652421f7c629e /src
parent8da180f6cac51f6cb8a316b962f797dbaf7ee96f (diff)
downloadgo-782f9ce52f5e021a8d0b0140919afecf0733c4a7.tar.xz
os: document DevNull on windows
DevNull is documented on darwin, dragonfly, freebsd, linux, nacl, netbsd, openbsd, solaris and plan9, but not on windows. Add missing documentation. Change-Id: Icdbded0dd5e322ed4360cbce6bee4cdca5cfbe72 Reviewed-on: https://go-review.googlesource.com/102456 Run-TryBot: Alex Brainman <alex.brainman@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src')
-rw-r--r--src/os/file_windows.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/os/file_windows.go b/src/os/file_windows.go
index 9191830144..8ace9c0c7f 100644
--- a/src/os/file_windows.go
+++ b/src/os/file_windows.go
@@ -87,6 +87,8 @@ type dirInfo struct {
func epipecheck(file *File, e error) {
}
+// DevNull is the name of the operating system's ``null device.''
+// On Unix-like systems, it is "/dev/null"; on Windows, "NUL".
const DevNull = "NUL"
func (f *file) isdir() bool { return f != nil && f.dirinfo != nil }