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
https://golang.org/cl/163085
This commit is contained in:
Rob Pike 2009-12-02 22:02:14 -08:00
parent 1eba218e44
commit b0683bd77a
30 changed files with 87 additions and 68 deletions

View file

@ -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