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)
}
sertions'>+48 2021-02-15Bump github.com/google/uuid from 1.1.4 to 1.2.0dependabot[bot]2-3/+3 2021-02-15Issue #46: Make the resulting email body not to include single \r or \n. This...René 'Necoro' Neumann2-2/+66 2021-01-20Bump github.com/PuerkitoBio/goquery from 1.6.0 to 1.6.1dependabot[bot]2-3/+3 2021-01-09Bump github.com/google/uuid from 1.1.2 to 1.1.4dependabot[bot]2-3/+3 2021-01-09Bump github.com/emersion/go-message from 0.14.0 to 0.14.1 (#42)dependabot[bot]2-3/+3 2020-11-28Bump github.com/emersion/go-message from 0.13.0 to 0.14.0 (#38)dependabot[bot]2-3/+9 2020-11-28Bump github.com/google/go-cmp from 0.5.2 to 0.5.4 (#37)dependabot[bot]2-3/+3 2020-11-23Fix release.ymlv0.5.2René 'Necoro' Neumann1-3/+10 2020-11-23Prepare v0.5.2René 'Necoro' Neumann3-3/+8 2020-11-20Bump github.com/gabriel-vasile/mimetype from 1.1.1 to 1.1.2dependabot[bot]2-3/+3 2020-11-04Clean dependabot.ymlRené 'Necoro' Neumann1-4/+0