diff options
| author | Russ Cox <rsc@golang.org> | 2009-03-11 12:51:10 -0700 | 
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2009-03-11 12:51:10 -0700 | 
| commit | 58b0883da1bb400157f2cbd1c890f4f712403c4d (patch) | |
| tree | 6700308658c711a896e1c4a352a5ad41e706b304 /src/lib/net/parse.go | |
| parent | dac7740a27a435fd647792160e9c75daf5889fe7 (diff) | |
| download | golang-58b0883da1bb400157f2cbd1c890f4f712403c4d.tar.gz | |
Rename os.FD to os.File.
Make Fstat, Readdirnames, and Readdir methods
on os.File.
R=r
DELTA=281  (79 added, 3 deleted, 199 changed)
OCL=25891
CL=26130
Diffstat (limited to 'src/lib/net/parse.go')
| -rw-r--r-- | src/lib/net/parse.go | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/src/lib/net/parse.go b/src/lib/net/parse.go index e9aaf0630..194f41290 100644 --- a/src/lib/net/parse.go +++ b/src/lib/net/parse.go @@ -13,12 +13,12 @@ import (  )  type file struct { -	fd *os.FD; +	file *os.File;  	data []byte;  }  func (f *file) close() { -	f.fd.Close() +	f.file.Close()  }  func (f *file) getLineFromData() (s string, ok bool) { @@ -46,7 +46,7 @@ func (f *file) readLine() (s string, ok bool) {  	}  	if len(f.data) < cap(f.data) {  		ln := len(f.data); -		n, err := io.Readn(f.fd, f.data[ln:cap(f.data)]); +		n, err := io.Readn(f.file, f.data[ln:cap(f.data)]);  		if n >= 0 {  			f.data = f.data[0:ln+n];  		} | 
