aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/tool/flags_test.go
diff options
context:
space:
mode:
authorTaras Madan <tarasmadan@google.com>2023-02-23 14:28:18 +0100
committerGitHub <noreply@github.com>2023-02-23 14:28:18 +0100
commit4359978ef22a22ddd5a19adf18cbc80cb44244fb (patch)
tree7952da94e27417b39ddf952d9e0bab431dafc4c5 /pkg/tool/flags_test.go
parent9e2ebb3c174f1e168bc1fbadd5f02f2e25e314fc (diff)
all: ioutil is deprecated in go1.19 (#3718)
Diffstat (limited to 'pkg/tool/flags_test.go')
-rw-r--r--pkg/tool/flags_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/tool/flags_test.go b/pkg/tool/flags_test.go
index 849e3fa00..0503c48fc 100644
--- a/pkg/tool/flags_test.go
+++ b/pkg/tool/flags_test.go
@@ -6,7 +6,7 @@ package tool
import (
"flag"
"fmt"
- "io/ioutil"
+ "io"
"strings"
"testing"
@@ -33,7 +33,7 @@ func TestParseFlags(t *testing.T) {
t.Run(fmt.Sprint(i), func(t *testing.T) {
vals := new(Values)
flags := flag.NewFlagSet("", flag.ContinueOnError)
- flags.SetOutput(ioutil.Discard)
+ flags.SetOutput(io.Discard)
flags.BoolVar(&vals.Foo, "foo", false, "")
flags.IntVar(&vals.Bar, "bar", 1, "")
flags.StringVar(&vals.Baz, "baz", "baz", "")