aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.eu>2021-06-02 00:09:31 +0200
committerRené 'Necoro' Neumann <necoro@necoro.eu>2021-06-02 00:09:31 +0200
commit376eee6450f1645762d62f68f7f642a9769f138d (patch)
tree94c6d5444a72ee455065d9bfed8e42e8baeaa6fd
parente5ebab33148db06b06c6163e2c0a2e1e107d2bb2 (diff)
downloadfeed2imap-go-376eee6450f1645762d62f68f7f642a9769f138d.tar.gz
feed2imap-go-376eee6450f1645762d62f68f7f642a9769f138d.tar.bz2
feed2imap-go-376eee6450f1645762d62f68f7f642a9769f138d.zip
Replace deprecated module `ioutil`
Diffstat (limited to '')
-rw-r--r--internal/feed/mail.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/feed/mail.go b/internal/feed/mail.go
index 6ca7192..799e36e 100644
--- a/internal/feed/mail.go
+++ b/internal/feed/mail.go
@@ -4,7 +4,7 @@ import (
"bytes"
"encoding/base64"
"fmt"
- "io/ioutil"
+ "io"
"mime"
"net/url"
"path"
@@ -224,7 +224,7 @@ func getImage(src string, timeout int, disableTLS bool) ([]byte, string, error)
}
defer cancel()
- img, err := ioutil.ReadAll(resp.Body)
+ img, err := io.ReadAll(resp.Body)
if err != nil {
return nil, "", fmt.Errorf("reading from '%s': %w", src, err)
}