diff --git a/bench_test.go b/bench_test.go index 0151101..54c7259 100644 --- a/bench_test.go +++ b/bench_test.go @@ -1,7 +1,7 @@ package gopretty import ( - "io/ioutil" + "io" "testing" "time" @@ -52,7 +52,7 @@ func BenchmarkProgress_Render(b *testing.B) { for i := 0; i < b.N; i++ { pw := progress.NewWriter() pw.SetAutoStop(true) - pw.SetOutputWriter(ioutil.Discard) + pw.SetOutputWriter(io.Discard) go trackSomething(pw, &tracker1) go trackSomething(pw, &tracker2) go trackSomething(pw, &tracker3) diff --git a/cmd/profile-progress/profile.go b/cmd/profile-progress/profile.go index 895ce41..ca7cdac 100644 --- a/cmd/profile-progress/profile.go +++ b/cmd/profile-progress/profile.go @@ -2,7 +2,7 @@ package main import ( "fmt" - "io/ioutil" + "io" "os" "strconv" "time" @@ -36,7 +36,7 @@ func profileRender(profiler func(profile2 *profile.Profile), n int) { for i := 0; i < n; i++ { pw := progress.NewWriter() pw.SetAutoStop(true) - pw.SetOutputWriter(ioutil.Discard) + pw.SetOutputWriter(io.Discard) go trackSomething(pw, &tracker1) go trackSomething(pw, &tracker2) go trackSomething(pw, &tracker3)