Skip to content

Commit

Permalink
replace imports of ioutil with io (#304)
Browse files Browse the repository at this point in the history
  • Loading branch information
Skeeve committed Mar 13, 2024
1 parent 7206de6 commit 699cbbf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions bench_test.go
@@ -1,7 +1,7 @@
package gopretty

import (
"io/ioutil"
"io"
"testing"
"time"

Expand Down Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions cmd/profile-progress/profile.go
Expand Up @@ -2,7 +2,7 @@ package main

import (
"fmt"
"io/ioutil"
"io"
"os"
"strconv"
"time"
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 699cbbf

Please sign in to comment.