summaryrefslogtreecommitdiff
path: root/test
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 /test
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 'test')
-rw-r--r--test/bench/k-nucleotide.go4
-rw-r--r--test/bench/regex-dna.go4
2 files changed, 4 insertions, 4 deletions
diff --git a/test/bench/k-nucleotide.go b/test/bench/k-nucleotide.go
index d256b372f..47debecb3 100644
--- a/test/bench/k-nucleotide.go
+++ b/test/bench/k-nucleotide.go
@@ -39,7 +39,7 @@ import (
"bufio";
"bytes";
"fmt";
- "io";
+ "io/ioutil";
"os";
"sort";
"strings";
@@ -122,7 +122,7 @@ func main() {
break
}
}
- data, err := io.ReadAll(in);
+ data, err := ioutil.ReadAll(in);
if err != nil {
fmt.Fprintln(os.Stderr, "ReadAll err:", err);
os.Exit(2);
diff --git a/test/bench/regex-dna.go b/test/bench/regex-dna.go
index 75133dc85..2e1ab8edb 100644
--- a/test/bench/regex-dna.go
+++ b/test/bench/regex-dna.go
@@ -37,7 +37,7 @@ package main
import (
"fmt";
- "io";
+ "io/ioutil";
"os";
"regexp";
"strings";
@@ -88,7 +88,7 @@ func countMatches(pat string, bytes []byte) int {
}
func main() {
- bytes, err := io.ReadFile("/dev/stdin");
+ bytes, err := ioutil.ReadFile("/dev/stdin");
if err != nil {
fmt.Fprintf(os.Stderr, "can't read input: %s\n", err);
os.Exit(2);