summaryrefslogtreecommitdiff
path: root/src/pkg/path/path.go
diff options
context:
space:
mode:
authorRob Pike <r@golang.org>2009-12-02 22:02:14 -0800
committerRob Pike <r@golang.org>2009-12-02 22:02:14 -0800
commit9599e35e75f3bf5223edd9b0a0854536c23cdef2 (patch)
treec8ce48aeddfe892be3754b0aa74217b4eb6d1e57 /src/pkg/path/path.go
parent0247d93d819700b0bfc6814dc7b1c2afec4648a0 (diff)
downloadgolang-9599e35e75f3bf5223edd9b0a0854536c23cdef2.tar.gz
move ReadFile, WriteFile, and ReadDir into a separate io/ioutil package.
this breaks the dependency of package io on package bytes. R=rsc CC=golang-dev http://codereview.appspot.com/163085
Diffstat (limited to 'src/pkg/path/path.go')
-rw-r--r--src/pkg/path/path.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pkg/path/path.go b/src/pkg/path/path.go
index e5b9e989d..59deb5ce9 100644
--- a/src/pkg/path/path.go
+++ b/src/pkg/path/path.go
@@ -7,7 +7,7 @@
package path
import (
- "io";
+ "io/ioutil";
"os";
"strings";
)
@@ -155,7 +155,7 @@ func walk(path string, d *os.Dir, v Visitor, errors chan<- os.Error) {
return // skip directory entries
}
- list, err := io.ReadDir(path);
+ list, err := ioutil.ReadDir(path);
if err != nil {
if errors != nil {
errors <- err