diff options
| author | Adnan Maolood <[email protected]> | 2021-02-16 18:57:24 -0500 |
|---|---|---|
| committer | Adnan Maolood <[email protected]> | 2021-02-16 18:57:24 -0500 |
| commit | 332dd253d017943480a22c63208c5eb0902261cd (patch) | |
| tree | 0aa55678dcb3dd00b283690bbf60cc4f221590eb /examples/client.go | |
| parent | fs: Replace FileSystem with io/fs.FS (diff) | |
| download | go-gemini-332dd253d017943480a22c63208c5eb0902261cd.tar.xz go-gemini-332dd253d017943480a22c63208c5eb0902261cd.zip | |
Replace uses of ioutil with io
Diffstat (limited to 'examples/client.go')
| -rw-r--r-- | examples/client.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/client.go b/examples/client.go index 4115c1b..14abe27 100644 --- a/examples/client.go +++ b/examples/client.go @@ -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) } |