Replace uses of ioutil with io

This commit is contained in:
Adnan Maolood
2021-02-16 18:57:24 -05:00
parent d2001de5f3
commit 332dd253d0
2 changed files with 4 additions and 5 deletions

View File

@@ -10,7 +10,7 @@ import (
"crypto/x509"
"errors"
"fmt"
"io/ioutil"
"io"
"log"
"net/url"
"os"
@@ -149,7 +149,7 @@ func main() {
// Handle response
if gemini.StatusClass(resp.Status) == gemini.StatusSuccess {
body, err := ioutil.ReadAll(resp.Body)
body, err := io.ReadAll(resp.Body)
if err != nil {
log.Fatal(err)
}