diff options
author | Russ Cox <rsc@golang.org> | 2009-02-03 14:16:22 -0800 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2009-02-03 14:16:22 -0800 |
commit | 5b6d40041f593663c52f574f69d7d6bfc51e9ff5 (patch) | |
tree | 91e8a1f2fd6548d6c9ad61f91f97f19990bbc92e /src/lib/io/io.go | |
parent | ffcd33538f133b407f1187842f94932593d312b1 (diff) | |
download | golang-5b6d40041f593663c52f574f69d7d6bfc51e9ff5.tar.gz |
bufio:
* avoid large copies
* NewBufRead, NewBufWrite never fail
* add BufReadWrite
io:
* add io.Close
http, google/net/rpc:
* add, use http.Conn.Hijack
R=r
DELTA=416 (202 added, 123 deleted, 91 changed)
OCL=24153
CL=24238
Diffstat (limited to 'src/lib/io/io.go')
-rw-r--r-- | src/lib/io/io.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/io/io.go b/src/lib/io/io.go index cbacbe095..54f18fb95 100644 --- a/src/lib/io/io.go +++ b/src/lib/io/io.go @@ -30,6 +30,10 @@ type ReadWriteClose interface { Close() *os.Error; } +type Close interface { + Close() *os.Error; +} + func WriteString(w Write, s string) (n int, err *os.Error) { b := make([]byte, len(s)+1); if !syscall.StringToBytes(b, s) { |