diff options
author | Rob Pike <r@golang.org> | 2008-09-11 13:40:17 -0700 |
---|---|---|
committer | Rob Pike <r@golang.org> | 2008-09-11 13:40:17 -0700 |
commit | c42859e2d5b5cc53b43d6dabc27a782865230fc9 (patch) | |
tree | 63ad4f7c84d3162b515c764370c4025bc20dc823 /src/lib/os/os_error.go | |
parent | 9c2e6bf6cdb8d8c8483dc01f932d9575ace72e96 (diff) | |
download | golang-c42859e2d5b5cc53b43d6dabc27a782865230fc9.tar.gz |
make syscall use strings for file names
tweak os to adjust
move StringToBytes into syscall, at least for now
this program still works:
package main
import os "os"
func main() {
os.Stdout.WriteString("hello, world\n");
a, b := os.NewFD(77).WriteString("no way");
os.Stdout.WriteString(b.String() + "\n");
}
R=rsc
DELTA=263 (59 added, 176 deleted, 28 changed)
OCL=15153
CL=15153
Diffstat (limited to 'src/lib/os/os_error.go')
-rw-r--r-- | src/lib/os/os_error.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/os/os_error.go b/src/lib/os/os_error.go index 2da63da5a..16799ed5e 100644 --- a/src/lib/os/os_error.go +++ b/src/lib/os/os_error.go @@ -6,8 +6,8 @@ package os import syscall "syscall" -// Errors are singleton structures. Use the Print()/String() methods to get their contents -- -// they handle the nil (no error) case. +// Errors are singleton structures. Use the String() method to get their contents -- +// it handles the nil (no error) case. export type Error struct { s string } |