Skip to content

Commit 699cbbf

Browse files
authored
replace imports of ioutil with io (#304)
1 parent 7206de6 commit 699cbbf

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

bench_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package gopretty
22

33
import (
4-
"io/ioutil"
4+
"io"
55
"testing"
66
"time"
77

@@ -52,7 +52,7 @@ func BenchmarkProgress_Render(b *testing.B) {
5252
for i := 0; i < b.N; i++ {
5353
pw := progress.NewWriter()
5454
pw.SetAutoStop(true)
55-
pw.SetOutputWriter(ioutil.Discard)
55+
pw.SetOutputWriter(io.Discard)
5656
go trackSomething(pw, &tracker1)
5757
go trackSomething(pw, &tracker2)
5858
go trackSomething(pw, &tracker3)

cmd/profile-progress/profile.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package main
22

33
import (
44
"fmt"
5-
"io/ioutil"
5+
"io"
66
"os"
77
"strconv"
88
"time"
@@ -36,7 +36,7 @@ func profileRender(profiler func(profile2 *profile.Profile), n int) {
3636
for i := 0; i < n; i++ {
3737
pw := progress.NewWriter()
3838
pw.SetAutoStop(true)
39-
pw.SetOutputWriter(ioutil.Discard)
39+
pw.SetOutputWriter(io.Discard)
4040
go trackSomething(pw, &tracker1)
4141
go trackSomething(pw, &tracker2)
4242
go trackSomething(pw, &tracker3)

0 commit comments

Comments
 (0)