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/cover/html.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pkg/cover/html.go') diff --git a/pkg/cover/html.go b/pkg/cover/html.go index 4a0e4e971..c5c18c698 100644 --- a/pkg/cover/html.go +++ b/pkg/cover/html.go @@ -11,9 +11,9 @@ import ( "html" "html/template" "io" - "io/ioutil" "math" "net/http" + "os" "path/filepath" "sort" "strconv" @@ -721,7 +721,7 @@ func percent(covered, total int) int { } func parseFile(fn string) ([][]byte, error) { - data, err := ioutil.ReadFile(fn) + data, err := os.ReadFile(fn) if err != nil { return nil, err } -- cgit mrf-deployment