From 4359978ef22a22ddd5a19adf18cbc80cb44244fb Mon Sep 17 00:00:00 2001 From: Taras Madan Date: Thu, 23 Feb 2023 14:28:18 +0100 Subject: all: ioutil is deprecated in go1.19 (#3718) --- pkg/compiler/consts_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pkg/compiler/consts_test.go') diff --git a/pkg/compiler/consts_test.go b/pkg/compiler/consts_test.go index 685525bc9..a0e4c1c8d 100644 --- a/pkg/compiler/consts_test.go +++ b/pkg/compiler/consts_test.go @@ -4,7 +4,7 @@ package compiler import ( - "io/ioutil" + "os" "path/filepath" "reflect" "sort" @@ -15,7 +15,7 @@ import ( ) func TestExtractConsts(t *testing.T) { - data, err := ioutil.ReadFile(filepath.Join("testdata", "consts.txt")) + data, err := os.ReadFile(filepath.Join("testdata", "consts.txt")) if err != nil { t.Fatalf("failed to read input file: %v", err) } -- cgit mrf-deployment