aboutsummaryrefslogtreecommitdiffstats
path: root/lib/parse
diff options
context:
space:
mode:
authorMoritz Poldrack <git@moritz.sh>2022-08-17 16:19:45 +0200
committerRobin Jarry <robin@jarry.cc>2022-08-22 09:30:19 +0200
commit9cffc45f0347e5c8b801c151955fa9326b9b2ba7 (patch)
tree4de8e74f1ec7378297185f65807cb9019caf1a1a /lib/parse
parent1b91b68e7385239783bee818974c4ce2032b7039 (diff)
downloadaerc-9cffc45f0347e5c8b801c151955fa9326b9b2ba7.tar.gz
go: removed io/ioutil
Since the minimum required version of Go has been bumped to 1.16, the deprecation of io/ioutil can now be acted upon. This Commit removes the remaining dependencies on ioutil and replaces them with their io or os counterparts. Signed-off-by: Moritz Poldrack <git@moritz.sh> Acked-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'lib/parse')
-rw-r--r--lib/parse/hyperlinks_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/parse/hyperlinks_test.go b/lib/parse/hyperlinks_test.go
index f16392a5..ba67664b 100644
--- a/lib/parse/hyperlinks_test.go
+++ b/lib/parse/hyperlinks_test.go
@@ -1,7 +1,7 @@
package parse_test
import (
- "io/ioutil"
+ "io"
"strings"
"testing"
@@ -75,7 +75,7 @@ func TestHyperlinks(t *testing.T) {
// make sure reader is exact copy of input reader
reader, links := parse.HttpLinks(strings.NewReader(test.text))
- if data, err := ioutil.ReadAll(reader); err != nil {
+ if data, err := io.ReadAll(reader); err != nil {
t.Errorf("could not read text: %v", err)
} else if string(data) != test.text {
t.Errorf("did not copy input reader correctly")